Select fewer ruff rules when linting Python files in scripts/ (#11034)

This commit is contained in:
Alex Waygood 2024-04-19 12:33:36 +01:00 committed by GitHub
parent 9bb23b0a38
commit 9b80cc09ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 12 deletions

View file

@ -444,7 +444,7 @@ async def main(
if matches is None: if matches is None:
# Handle case where there are no regex matches e.g. # 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 # Which was found in local testing
continue continue

View file

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