0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-21 13:09:21 +01:00

meta: remove unneeded ignore rules from ruff

PR-URL: https://github.com/nodejs/node/pull/54360
Reviewed-By: Christian Clauss <cclauss@me.com>
This commit is contained in:
Aviv Keller 2024-09-18 11:07:37 -04:00 committed by GitHub
parent 0c5fa57bc7
commit c6ae161237
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 7 deletions

View File

@ -5,6 +5,7 @@ exclude = [
"tools/gyp", "tools/gyp",
"tools/inspector_protocol", "tools/inspector_protocol",
"tools/eslint/node_modules", "tools/eslint/node_modules",
"tools/github_reporter"
] ]
line-length = 172 line-length = 172
target-version = "py38" target-version = "py38"
@ -40,12 +41,6 @@ ignore = [
[tool.ruff.lint.mccabe] [tool.ruff.lint.mccabe]
max-complexity = 100 max-complexity = 100
[tool.ruff.lint.per-file-ignores]
"tools/checkimports.py" = ["W605"]
"tools/gyp/pylib/gyp/xcodeproj_file.py" = ["PLE0101"]
"tools/icu/shrink-icu-src.py" = ["W605"]
"tools/mkssldef.py" = ["W605"]
[tool.ruff.lint.pylint] [tool.ruff.lint.pylint]
max-args = 12 max-args = 12
max-branches = 110 max-branches = 110

View File

@ -48,7 +48,7 @@ def print_size(fn):
size = (os.stat(fn).st_size) / 1024000 size = (os.stat(fn).st_size) / 1024000
print('%dM\t%s' % (size, fn)) print('%dM\t%s' % (size, fn))
ignore_regex = re.compile('^.*\.(vcxproj|filters|nrm|icu|dat|xml|txt|ac|guess|m4|in|sub|py|mak)$') ignore_regex = re.compile(r'^.*\.(vcxproj|filters|nrm|icu|dat|xml|txt|ac|guess|m4|in|sub|py|mak)$')
def icu_ignore(dir, files): def icu_ignore(dir, files):
subdir = dir[len(options.icusrc)+1::] subdir = dir[len(options.icusrc)+1::]