Skip to content

Commit c6ae161

Browse files
author
Aviv Keller
authored
meta: remove unneeded ignore rules from ruff
PR-URL: nodejs#54360 Reviewed-By: Christian Clauss <[email protected]>
1 parent 0c5fa57 commit c6ae161

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

pyproject.toml

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ exclude = [
55
"tools/gyp",
66
"tools/inspector_protocol",
77
"tools/eslint/node_modules",
8+
"tools/github_reporter"
89
]
910
line-length = 172
1011
target-version = "py38"
@@ -40,12 +41,6 @@ ignore = [
4041
[tool.ruff.lint.mccabe]
4142
max-complexity = 100
4243

43-
[tool.ruff.lint.per-file-ignores]
44-
"tools/checkimports.py" = ["W605"]
45-
"tools/gyp/pylib/gyp/xcodeproj_file.py" = ["PLE0101"]
46-
"tools/icu/shrink-icu-src.py" = ["W605"]
47-
"tools/mkssldef.py" = ["W605"]
48-
4944
[tool.ruff.lint.pylint]
5045
max-args = 12
5146
max-branches = 110

tools/icu/shrink-icu-src.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def print_size(fn):
4848
size = (os.stat(fn).st_size) / 1024000
4949
print('%dM\t%s' % (size, fn))
5050

51-
ignore_regex = re.compile('^.*\.(vcxproj|filters|nrm|icu|dat|xml|txt|ac|guess|m4|in|sub|py|mak)$')
51+
ignore_regex = re.compile(r'^.*\.(vcxproj|filters|nrm|icu|dat|xml|txt|ac|guess|m4|in|sub|py|mak)$')
5252

5353
def icu_ignore(dir, files):
5454
subdir = dir[len(options.icusrc)+1::]

0 commit comments

Comments
 (0)