Switch ling to ruff.
This commit is contained in:
@@ -36,19 +36,14 @@ extend-ignore = ['E203', 'E231']
|
||||
manga-scan = "holt59.scans.__main__:main"
|
||||
|
||||
[tool.poe.tasks]
|
||||
lint-black = "black --check --diff src typings"
|
||||
lint-isort = "isort -c src typings"
|
||||
lint-mypy = "mypy src typings"
|
||||
format-imports = "ruff check --select I src typings --fix"
|
||||
format-ruff = "ruff format src typings"
|
||||
format.sequence = ["format-imports", "format-ruff"]
|
||||
lint-ruff = "ruff check src typings"
|
||||
lint-ruff-format = "ruff format --check src typings"
|
||||
lint-pyright = "pyright src typings"
|
||||
lint-all.sequence = [
|
||||
"lint-black",
|
||||
"lint-isort",
|
||||
"lint-mypy",
|
||||
"lint-ruff",
|
||||
"lint-pyright",
|
||||
]
|
||||
lint-all.ignore_fail = "return_non_zero"
|
||||
lint.sequence = ["lint-ruff", "lint-ruff-format", "lint-pyright"]
|
||||
lint.ignore_fail = "return_non_zero"
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
@@ -67,6 +62,9 @@ ignore_missing_imports = true
|
||||
line-length = 88
|
||||
target-version = "py311"
|
||||
|
||||
[tool.ruff.lint]
|
||||
extend-select = ["B", "Q", "I"]
|
||||
|
||||
[tool.pyright]
|
||||
exclude = ["lib", "**/.*", "venv", "build"]
|
||||
typeCheckingMode = "strict"
|
||||
|
Reference in New Issue
Block a user