Skip to content

Commit d2d7aa8

Browse files
committed
Consolidate UP031 ignores
1 parent be3afe3 commit d2d7aa8

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Tools/build/.ruff.toml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,19 @@ select = [
1818
"W", # pycodestyle
1919
"YTT", # flake8-2020
2020
]
21-
ignore = [
22-
"E501", # Line too long
23-
]
2421

2522
[per-file-target-version]
2623
"deepfreeze.py" = "py310"
2724
"stable_abi.py" = "py311" # requires 'tomllib'
2825

2926
[lint.per-file-ignores]
27+
"{check_extension_modules,freeze_modules,generate_re_casefix,generate_sre_constants}.py" = [
28+
"UP031", # Use format specifiers instead of percent format
29+
]
30+
3031
"check_extension_modules.py" = [
3132
"PYI024", # Use `typing.NamedTuple` instead of `collections.namedtuple`
32-
"UP031", # Use format specifiers instead of percent format
3333
]
3434
"freeze_modules.py" = [
3535
"PYI024", # Use `typing.NamedTuple` instead of `collections.namedtuple`
36-
"UP031", # Use format specifiers instead of percent format
37-
]
38-
"generate_re_casefix.py" = [
39-
"UP031", # Use format specifiers instead of percent format
40-
]
41-
"generate_sre_constants.py" = [
42-
"UP031", # Use format specifiers instead of percent format
4336
]

0 commit comments

Comments
 (0)