ruff: Enable PERF by default, disable PERF203 for now

Which is about try/except in loops. There are preformance issues with
this, but it's also a good improvement to have this.
This commit is contained in:
Dylan Baker committed 2026-10-30 20:04:49 -07:00
1 parent 84cda10a08
commit 27f69b22e5
1 file changed
+4 -1
+4 -1
View File
@@ -2,7 +2,10 @@ line-length = 100
target-version = "py310"
[lint]
select = ["F", "PERF102", "PERF401", "PERF402"]
select = ["F", "PERF"]
ignore = [
"PERF203", # This is is a good idea, but a significant amount of work.
]
[lint.per-file-ignores]
"mesonbuild/mesonlib.py" = ["F403"]