Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1f36d0

Browse filesBrowse 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
Copy full SHA for e1f36d0

File tree

Expand file treeCollapse file tree

2 files changed

+2
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-7
lines changed
Open diff view settings
Collapse file

‎pyproject.toml‎

Copy file name to clipboardExpand all lines: pyproject.toml
+1-6Lines 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
Collapse file

‎tools/icu/shrink-icu-src.py‎

Copy file name to clipboardExpand all lines: tools/icu/shrink-icu-src.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.