Skip to content

Commit be691e5

Browse files
Enforce additional ruff rules
1 parent 9e1696e commit be691e5

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

pyproject.toml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,29 @@ namespaces = false
6464
[tool.ruff.lint]
6565
preview = true
6666
select = [
67-
# Defaults
68-
"E4", "E7", "E9", "F",
69-
# Undefined export
70-
"F822",
71-
# Useless import alias
72-
"PLC0414"
67+
# Defaults
68+
"E4", "E7", "E9", "F",
69+
# Additional rules
70+
"B", "C4", "ISC", "PIE", "FLY", "PERF", "UP", "FURB",
71+
# Useless import alias
72+
"PLC0414",
73+
# Unused `noqa` directive
74+
"RUF100",
7375
]
7476

7577
ignore = [
7678
# Module import not at top of file
7779
"E402",
7880
# Do not use bare `except`
79-
"E722"
81+
"E722",
82+
# Use of `functools.cache` on methods can lead to memory leaks
83+
"B019",
84+
# No explicit `stacklevel` keyword argument found
85+
"B028",
86+
# Within an `except` clause, raise exceptions with `raise ... from ...`
87+
"B904",
88+
# `try`-`except` within a loop incurs performance overhead
89+
"PERF203",
8090
]
8191

8292

0 commit comments

Comments
 (0)