diff --git a/.flake8 b/.flake8 deleted file mode 100644 index c65bcc8..0000000 --- a/.flake8 +++ /dev/null @@ -1,17 +0,0 @@ -[flake8] -max-line-length = 120 -max-complexity = 45 -ignore = - E203 - W503 # line break before binary operator; conflicts with black - E722 # bare except ok - E731 # lambda expressions ok - E741 # undescriptive variable ok -exclude = - .git - .tox - __pycache__ - build - dist - docs - .libstempo \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index fc01913..6b9bace 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,6 +59,7 @@ astropy = [ dev = [ "black", "flake8", + "Flake8-pyproject", "pre-commit", "wheel", "coverage", @@ -100,3 +101,23 @@ exclude = ''' )/ ) ''' + +[tool.flake8] +max-line-length = 120 +max-complexity = 45 +ignore = [ + "E203", + "W503", # line break before binary operator; conflicts with black + "E722", # bare except ok + "E731", # lambda expressions ok + "E741", # undescriptive variable ok +] +exclude = [ + ".git", + ".tox", + "__pycache__", + "build", + "dist", + "docs", + ".libstempo", +]