Skip to content

Commit

Permalink
Select fewer ruff rules when linting Python files in scripts/ (#11034)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Apr 19, 2024
1 parent 9bb23b0 commit 9b80cc0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion scripts/check_ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ async def limited_parallelism(coroutine: T) -> T:

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

Expand Down
24 changes: 13 additions & 11 deletions scripts/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ line-length = 88
line-length = 88

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"C901", # McCabe complexity
"D", # pydocstyle
"PL", # pylint
"S", # bandit
"G", # flake8-logging
"T", # flake8-print
"FBT", # flake8-boolean-trap
"PERF", # perflint
"ANN401",
select = [
"E", # pycodestyle (error)
"F", # pyflakes
"B", # bugbear
"B9",
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"I", # isort
"UP", # pyupgrade
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"PYI", # flake8-pyi
"RUF",
]

[tool.ruff.lint.isort]
Expand Down

0 comments on commit 9b80cc0

Please sign in to comment.