mirror of
https://github.com/mesonbuild/meson.git
synced 2026-11-06 05:16:42 +00:00
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:
1 parent
84cda10a08
commit
27f69b22e5
1 file changed
+4
-1
+4
-1
@@ -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"]
|
||||
Reference in new issue
Block a user