Skip to content

Commit

Permalink
Reduce Ruff configs that duplicates upstream after skeleton merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Feb 27, 2025
1 parent da16e32 commit 9b28b0b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ exclude = [
[lint]
extend-select = [
# upstream

"C901", # complex-structure
"I", # isort
"PERF401", # manual-list-comprehension
"W", # pycodestyle Warning
# Ensure modern type annotation syntax and best practices

# Ensure modern type annotation syntax and best practices
# Not including those covered by type-checkers or exclusive to Python 3.11+
"FA", # flake8-future-annotations
"F404", # late-future-import
Expand All @@ -30,21 +30,17 @@ extend-select = [

# local
"ANN2", # missing-return-type-*
"F", # Pyflakes
"F404", # late-future-import
"FA", # flake8-future-annotations
"PERF", # Perflint
"PGH", # pygrep-hooks (blanket-* rules)
"PT", # flake8-pytest-style
"PYI", # flake8-pyi
"RUF10", # unused-noqa & redirected-noqa
"TRY", # tryceratops
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
# upstream

# Typeshed rejects complex or non-literal defaults for maintenance and testing reasons,
# irrelevant to this project.
"PYI011", # typed-argument-default-in-stub
Expand All @@ -64,8 +60,8 @@ ignore = [
"ISC001",
"ISC002",

# local
"PERF203", # try-except-in-loop, micro-optimisation with many false-positive. Worth checking but don't block CI
# local
"PERF203", # try-except-in-loop, micro-optimisation with many false-positive. Worth checking but don't block CI
"PT007", # temporarily disabled, TODO: configure and standardize to preference
"PT011", # temporarily disabled, TODO: tighten expected error
"PT012", # pytest-raises-with-multiple-statements, avoid extra dummy methods for a few lines, sometimes we explicitly assert in case of no error
Expand Down

0 comments on commit 9b28b0b

Please sign in to comment.