Skip to content

Commit

Permalink
Disable ruff's COM812
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks authored Nov 25, 2024
1 parent 532ba5f commit b0dd931
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,18 @@ select = [
"YTT", # flake8-2020
]
extend-ignore = [
'A002', # builtin-argument-shadowing
'ANN401', # any-type (mypy's `disallow_any_explicit` is better)
'E402', # module-import-not-at-top-of-file (usually OS-specific)
'E501', # line-too-long
'F403', # undefined-local-with-import-star
'F405', # undefined-local-with-import-star-usage
'PERF203', # try-except-in-loop (not always possible to refactor)
'PT012', # multiple statements in pytest.raises block
'SIM117', # multiple-with-statements (messes up lots of context-based stuff and looks bad)
"A002", # builtin-argument-shadowing
"ANN401", # any-type (mypy's `disallow_any_explicit` is better)
"E402", # module-import-not-at-top-of-file (usually OS-specific)
"E501", # line-too-long
"F403", # undefined-local-with-import-star
"F405", # undefined-local-with-import-star-usage
"PERF203", # try-except-in-loop (not always possible to refactor)
"PT012", # multiple statements in pytest.raises block
"SIM117", # multiple-with-statements (messes up lots of context-based stuff and looks bad)

# conflicts with formatter (ruff recommends these be disabled)
"COM812",
]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit b0dd931

Please sign in to comment.