Lint perflint, comprehensions and blind-except (PERF, C4, BLE)

- flake8-blind-except: https://docs.astral.sh/ruff/rules/#flake8-blind-except-ble
- flake8-comprehensions: https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
- Perflint: https://docs.astral.sh/ruff/rules/#perflint-perf
This commit is contained in:
Kieran Ryan 2024-12-31 16:19:40 +00:00
parent d70029dde9
commit 59c638c622
1 changed files with 3 additions and 0 deletions

View File

@ -62,12 +62,15 @@ line-length = 120
target-version = "py39"
lint.select = [
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"E4", # pycodestyle - error - import
"E7", # pycodestyle - error - statement
"E9", # pycodestyle - error - runtime
"F", # pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"PERF", # perflint
"UP", # pyupgrade
]
lint.isort.required-imports = [