Skip to content

Commit 9b80cc0

Browse files
authored
Select fewer ruff rules when linting Python files in scripts/ (#11034)
1 parent 9bb23b0 commit 9b80cc0

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

scripts/check_ecosystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ async def limited_parallelism(coroutine: T) -> T:
444444

445445
if matches is None:
446446
# Handle case where there are no regex matches e.g.
447-
# + "?application=AIRFLOW&authenticator=TEST_AUTH&role=TEST_ROLE&warehouse=TEST_WAREHOUSE" # noqa: E501, ERA001
447+
# + "?application=AIRFLOW&authenticator=TEST_AUTH&role=TEST_ROLE&warehouse=TEST_WAREHOUSE" # noqa: E501
448448
# Which was found in local testing
449449
continue
450450

scripts/pyproject.toml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@ line-length = 88
1111
line-length = 88
1212

1313
[tool.ruff.lint]
14-
select = ["ALL"]
15-
ignore = [
16-
"C901", # McCabe complexity
17-
"D", # pydocstyle
18-
"PL", # pylint
19-
"S", # bandit
20-
"G", # flake8-logging
21-
"T", # flake8-print
22-
"FBT", # flake8-boolean-trap
23-
"PERF", # perflint
24-
"ANN401",
14+
select = [
15+
"E", # pycodestyle (error)
16+
"F", # pyflakes
17+
"B", # bugbear
18+
"B9",
19+
"C4", # flake8-comprehensions
20+
"SIM", # flake8-simplify
21+
"I", # isort
22+
"UP", # pyupgrade
23+
"PIE", # flake8-pie
24+
"PGH", # pygrep-hooks
25+
"PYI", # flake8-pyi
26+
"RUF",
2527
]
2628

2729
[tool.ruff.lint.isort]

0 commit comments

Comments
 (0)