[flake8]
doctests = True
exclude = .git, .eggs, __pycache__, docs, dist, venv, .tox, env, envs, .cache
ignore =
    # line too long, we use black
    E501,
    # blank line contains whitespace / final whitespace, we use black
    W291,
    W293,
    # blank line contains whitespace / final whitespace, we use black
    E303,
    # line break before binary operator
    W503,
    # wrong flake defaults: see https://github.com/psf/black/issues/315, https://github.com/psf/black/issues/43
    E203,
    W503,
    W504
extend-ignore =
    RST307,
    # Google Python style is not RST until after processed by Napoleon
    # See https://github.com/peterjc/flake8-rst-docstrings/issues/17
    RST201,RST203,RST301,
rst-roles =
    class,
    func,
    ref,
rst-directives =
    envvar,
    exception,
rst-substitutions =
    version,
per-file-ignores =
    __init__.py:F401,E402
