Skip to content

Commit e1f36d0

Browse files
avivkellertargos
authored andcommitted
meta: remove unneeded ignore rules from ruff
PR-URL: #54360 Reviewed-By: Christian Clauss <cclauss@me.com>
1 parent 048a1ab commit e1f36d0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 6 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy