diff --git a/dev-environment.yml b/dev-environment.yml index 6e07727..e4b8fe9 100644 --- a/dev-environment.yml +++ b/dev-environment.yml @@ -27,6 +27,7 @@ dependencies: - build - black - flake8 + - flake8-pyproject - isort - pre-commit - pyflakes diff --git a/pyproject.toml b/pyproject.toml index 86b7aed..2ec4d8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,5 +74,13 @@ include-package-data = false where = ["src"] namespaces = false +# Thanks to Flake8-pyproject, we can configure flake8 here! +[tool.flake8] +exclude = ["bin", "build", "docs", "dist"] +extend-ignore = ["E203"] +# See https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8 +max-line-length = 88 +min_python_version = "3.8" + [tool.isort] profile = "black" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 376f6df..0000000 --- a/setup.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# TODO: Move all configuration into pyproject.toml -# -[flake8] -# See https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8 -max-line-length = 88 -extend-ignore = E203