diff --git a/pyproject.toml b/pyproject.toml index 6bc38d94..f6c80200 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,13 +42,13 @@ rich = "^12.2.0" # dayone-only deps tzlocal = ">=4.0" # https://github.com/regebro/tzlocal/blob/master/CHANGES.txt -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] black = { version = ">=21.5b2", allow-prereleases = true } +flakeheaven = ">=3.0" ipdb = "*" isort = ">=5.10" mkdocs = ">=1.0,<1.3" poethepoet = "*" -pyproject-flake8 = "*" pytest = ">=6.2" pytest-bdd = ">=4.0.1,<6.0" pytest-clarity = "*" @@ -150,9 +150,26 @@ filterwarnings = [ "ignore:[WinError 5].*" ] -[tool.flake8] -# ignore formatting warnings and errors because we use Black to autoformat -extend-ignore = "E101,E111,E114,E115,E116,E117,E12,E13,E2,E3,E401,E5,E70,W1,W2,W3,W5" +[tool.flakeheaven] +max_line_length = 88 + +[tool.flakeheaven.plugins] +pyflakes = ["+*"] +pycodestyle = [ + "+*", + "-E101", + "-E111", "-E114", "-E115", "-E116", "-E117", + "-E12*", + "-E13*", + "-E2*", + "-E3*", + "-E401", + "-E5*", + "-E70", + "-W1*", "-W2*", "-W3*", "-W5*", +] +"flake8-*" = ["+*"] + [build-system] requires = ["poetry-core>=1.0.0"]