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:
dni ⚡ 2024-04-17 07:36:22 +02:00 committed by GitHub
parent d78f6a1f9e
commit daa1b5a313
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 36 additions and 28 deletions

View file

@ -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"]