| 1 |
extend = "../../.ruff.toml" # Inherit the project-wide settings |
| 2 |
|
| 3 |
[lint] |
| 4 |
select = [ |
| 5 |
"F", # Enable all pyflakes rules |
| 6 |
"UP", # Enable all pyupgrade rules by default |
| 7 |
"RUF100", # Ban unused `# noqa` comments |
| 8 |
"PGH004", # Ban blanket `# noqa` comments (only ignore specific error codes) |
| 9 |
] |
| 10 |
ignore = [ |
| 11 |
# Unnecessary parentheses to functools.lru_cache: just leads to unnecessary churn. |
| 12 |
# https://github.com/python/cpython/pull/104684#discussion_r1199653347. |
| 13 |
"UP011", |
| 14 |
# Use format specifiers instead of %-style formatting. |
| 15 |
# Doesn't always make code more readable. |
| 16 |
"UP031", |
| 17 |
# Use f-strings instead of format specifiers. |
| 18 |
# Doesn't always make code more readable. |
| 19 |
"UP032", |
| 20 |
] |
| 21 |
unfixable = [ |
| 22 |
# The autofixes sometimes do the wrong things for these; |
| 23 |
# it's better to have to manually look at the code and see how it needs fixing |
| 24 |
"F841", # Detects unused variables |
| 25 |
"F601", # Detects dictionaries that have duplicate keys |
| 26 |
"F602", # Also detects dictionaries that have duplicate keys |
| 27 |
] |