mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Replace flake* and isort with ruff calls
This commit is contained in:
parent
71e1b38aff
commit
7423c59116
1 changed files with 8 additions and 33 deletions
|
@ -89,7 +89,7 @@ test-run = [
|
||||||
# Groups of tasks
|
# Groups of tasks
|
||||||
format.default_item_type = "cmd"
|
format.default_item_type = "cmd"
|
||||||
format.sequence = [
|
format.sequence = [
|
||||||
"isort .",
|
"ruff check . --select I --fix", # equivalent to "isort ."
|
||||||
"black .",
|
"black .",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -98,9 +98,8 @@ lint.default_item_type = "cmd"
|
||||||
lint.sequence = [
|
lint.sequence = [
|
||||||
"poetry --version",
|
"poetry --version",
|
||||||
"poetry check",
|
"poetry check",
|
||||||
"flakeheaven --version",
|
"ruff --version",
|
||||||
"flakeheaven plugins",
|
"ruff .",
|
||||||
"flakeheaven lint",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
test = [
|
test = [
|
||||||
|
@ -108,11 +107,6 @@ test = [
|
||||||
"test-run",
|
"test-run",
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.isort]
|
|
||||||
profile = "black"
|
|
||||||
force_single_line = true
|
|
||||||
known_first_party = ["jrnl", "tests"]
|
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
minversion = "6.0"
|
minversion = "6.0"
|
||||||
required_plugins = [
|
required_plugins = [
|
||||||
|
@ -146,6 +140,7 @@ select = [
|
||||||
'E',
|
'E',
|
||||||
'F',
|
'F',
|
||||||
'W',
|
'W',
|
||||||
|
'I',
|
||||||
'ASYNC',
|
'ASYNC',
|
||||||
'S110', # try-except-pass
|
'S110', # try-except-pass
|
||||||
'S112', # try-except-continue
|
'S112', # try-except-continue
|
||||||
|
@ -160,33 +155,13 @@ select = [
|
||||||
]
|
]
|
||||||
exclude = [".git", ".tox", ".venv", "node_modules"]
|
exclude = [".git", ".tox", ".venv", "node_modules"]
|
||||||
|
|
||||||
|
[tool.ruff.isort]
|
||||||
|
force-single-line = true
|
||||||
|
known-first-party = ["jrnl", "tests"]
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.per-file-ignores]
|
||||||
"__init__.py" = ["F401"] # unused imports
|
"__init__.py" = ["F401"] # unused imports
|
||||||
|
|
||||||
[tool.flakeheaven]
|
|
||||||
max_line_length = 88
|
|
||||||
exclude = [".git", ".tox", ".venv", "node_modules"]
|
|
||||||
|
|
||||||
[tool.flakeheaven.plugins]
|
|
||||||
"py*" = ["+*"]
|
|
||||||
pycodestyle = [
|
|
||||||
"-E101",
|
|
||||||
"-E111", "-E114", "-E115", "-E116", "-E117",
|
|
||||||
"-E12*",
|
|
||||||
"-E13*",
|
|
||||||
"-E2*",
|
|
||||||
"-E3*",
|
|
||||||
"-E401",
|
|
||||||
"-E5*",
|
|
||||||
"-E70",
|
|
||||||
"-W1*", "-W2*", "-W3*", "-W5*",
|
|
||||||
]
|
|
||||||
"flake8-*" = ["+*"]
|
|
||||||
flake8-black = ["-BLK901"]
|
|
||||||
|
|
||||||
[tool.flakeheaven.exceptions."jrnl/journals/__init__.py"]
|
|
||||||
pyflakes = ["-F401"]
|
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
Loading…
Add table
Reference in a new issue