diff --git a/dev-environment.yml b/dev-environment.yml index 156ed64..afb1ce9 100644 --- a/dev-environment.yml +++ b/dev-environment.yml @@ -29,6 +29,7 @@ dependencies: - black - build - flake8 + - flake8-pyproject - isort - pytest - pytest-cov diff --git a/pyproject.toml b/pyproject.toml index 53dd108..534705e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,5 +76,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 db9f4e2..0000000 --- a/setup.cfg +++ /dev/null @@ -1,8 +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 -# Unfortunately, flake8 doesn't pick up on our declaration in pyproject.toml -min_python_version = 3.8.0