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]
|
||||
write_to = "corrlib/version.py"
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py310"
|
||||
|
||||
[tool.ruff.lint]
|
||||
ignore = ["E501"]
|
||||
extend-select = [
|
||||
"YTT",
|
||||
"E",
|
||||
"W",
|
||||
"F",
|
||||
extend-select = ["E", "W", "I", "B", "PIE", "PLE", "PLW", "UP", "NPY", "RUF"]
|
||||
ignore = [
|
||||
"F403", # star imports in __init__ files are intentional
|
||||
"E501", # line too long
|
||||
"PLC0415", # import outside top level
|
||||
"PLW2901", # redefined loop name (too noisy)
|
||||
"RUF002", # ambiguous unicode in docstrings (Greek letters)
|
||||
]
|
||||
|
||||
[tool.mypy]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue