replace flake8 with flakeheaven

This commit is contained in:
Jonathan Wren 2022-10-22 19:15:09 -07:00
parent 6cd8c35598
commit dcfc79b932
No known key found for this signature in database

View file

@ -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"]