From 21a0a91ef3fd49e42e68de61c47918ca80e32fdf Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:07:16 -0400 Subject: [PATCH] meta: remove unneeded ignore rules from ruff --- pyproject.toml | 9 ++------- tools/icu/shrink-icu-src.py | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 23edd575d87bf5..77cace9bc6e5ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,8 @@ exclude = [ "tools/cpplint.py", "tools/gyp", "tools/inspector_protocol", - "tools/eslint/node_modules", + "tools/eslint", + "tools/github_reporter" ] line-length = 172 target-version = "py37" @@ -40,12 +41,6 @@ ignore = [ [tool.ruff.lint.mccabe] 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] max-args = 12 max-branches = 110 diff --git a/tools/icu/shrink-icu-src.py b/tools/icu/shrink-icu-src.py index 3a9ba2fbfbf118..b390778626b7d0 100755 --- a/tools/icu/shrink-icu-src.py +++ b/tools/icu/shrink-icu-src.py @@ -48,7 +48,7 @@ def print_size(fn): size = (os.stat(fn).st_size) / 1024000 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): subdir = dir[len(options.icusrc)+1::]