mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 11:38:32 +02:00
replace flake8 with flakeheaven
This commit is contained in:
parent
6cd8c35598
commit
dcfc79b932
1 changed files with 22 additions and 5 deletions
|
@ -42,13 +42,13 @@ rich = "^12.2.0"
|
||||||
# dayone-only deps
|
# dayone-only deps
|
||||||
tzlocal = ">=4.0" # https://github.com/regebro/tzlocal/blob/master/CHANGES.txt
|
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 }
|
black = { version = ">=21.5b2", allow-prereleases = true }
|
||||||
|
flakeheaven = ">=3.0"
|
||||||
ipdb = "*"
|
ipdb = "*"
|
||||||
isort = ">=5.10"
|
isort = ">=5.10"
|
||||||
mkdocs = ">=1.0,<1.3"
|
mkdocs = ">=1.0,<1.3"
|
||||||
poethepoet = "*"
|
poethepoet = "*"
|
||||||
pyproject-flake8 = "*"
|
|
||||||
pytest = ">=6.2"
|
pytest = ">=6.2"
|
||||||
pytest-bdd = ">=4.0.1,<6.0"
|
pytest-bdd = ">=4.0.1,<6.0"
|
||||||
pytest-clarity = "*"
|
pytest-clarity = "*"
|
||||||
|
@ -150,9 +150,26 @@ filterwarnings = [
|
||||||
"ignore:[WinError 5].*"
|
"ignore:[WinError 5].*"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.flake8]
|
[tool.flakeheaven]
|
||||||
# ignore formatting warnings and errors because we use Black to autoformat
|
max_line_length = 88
|
||||||
extend-ignore = "E101,E111,E114,E115,E116,E117,E12,E13,E2,E3,E401,E5,E70,W1,W2,W3,W5"
|
|
||||||
|
[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]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue