stricter Ruff rules, matching https://github.com/fjosw/pyerrors/pull/282
This commit is contained in:
parent
e7480b5c96
commit
481558c5d7
1 changed files with 10 additions and 6 deletions
|
|
@ -26,13 +26,17 @@ include = ["corrlib", "corrlib.*"]
|
||||||
[tool.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
write_to = "corrlib/version.py"
|
write_to = "corrlib/version.py"
|
||||||
|
|
||||||
|
[tool.ruff]
|
||||||
|
target-version = "py310"
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
ignore = ["E501"]
|
extend-select = ["E", "W", "I", "B", "PIE", "PLE", "PLW", "UP", "NPY", "RUF"]
|
||||||
extend-select = [
|
ignore = [
|
||||||
"YTT",
|
"F403", # star imports in __init__ files are intentional
|
||||||
"E",
|
"E501", # line too long
|
||||||
"W",
|
"PLC0415", # import outside top level
|
||||||
"F",
|
"PLW2901", # redefined loop name (too noisy)
|
||||||
|
"RUF002", # ambiguous unicode in docstrings (Greek letters)
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue