chore: adhere to ruff's RUF rules, 2nd try (#2420)
* chore: adhere to ruff's `RUF` rules, 2nd try closes #2382
This commit is contained in:
parent
d78f6a1f9e
commit
daa1b5a313
13 changed files with 36 additions and 28 deletions
|
|
@ -173,9 +173,11 @@ extend-exclude = [
|
|||
# C - mccabe
|
||||
# N - naming
|
||||
# UP - pyupgrade
|
||||
select = ["F", "E", "W", "I", "A", "C", "N", "UP"]
|
||||
# RUF - ruff specific rules
|
||||
select = ["F", "E", "W", "I", "A", "C", "N", "UP", "RUF"]
|
||||
# UP007: pyupgrade: use X | Y instead of Optional. (python3.10)
|
||||
ignore = ["UP007"]
|
||||
# RUF012: mutable-class-default
|
||||
ignore = ["UP007", "RUF012"]
|
||||
|
||||
# Allow autofix for all enabled rules (when `--fix`) is provided.
|
||||
fixable = ["ALL"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue