Skip to content

Commit 03a46fb

Browse files
Enforce additional ruff rules
1 parent 39faf7c commit 03a46fb

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
@@ -65,19 +65,29 @@ namespaces = false
6565
[tool.ruff.lint]
6666
preview = true
6767
select = [
68-
# Defaults
69-
"E4", "E7", "E9", "F",
70-
# Undefined export
71-
"F822",
72-
# Useless import alias
73-
"PLC0414"
68+
# Defaults
69+
"E4", "E7", "E9", "F",
70+
# Additional rules
71+
"B", "C4", "ISC", "PIE", "FLY", "PERF", "UP", "FURB",
72+
# Useless import alias
73+
"PLC0414",
74+
# Unused `noqa` directive
75+
"RUF100",
7476
]
7577

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

8393

0 commit comments

Comments
 (0)