Skip to content

Commit

Permalink
Update ruff settings
Browse files Browse the repository at this point in the history
Disable deprecated/problematic rules.
  • Loading branch information
DimitriPapadopoulos committed Oct 2, 2024
1 parent 36a6871 commit 62f28de
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,29 +109,6 @@ filterwarnings = ["error"]
line-length = 88

[tool.ruff.lint]
ignore = [
"ANN101",
"B904",
"PLW2901",
"RET505",
"SIM105",
"SIM115",
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
]
select = [
"A",
"ANN",
Expand All @@ -157,6 +134,34 @@ select = [
"W",
"YTT",
]
ignore = [
"ANN101",
"B904",
"PLW2901",
"PT004", # deprecated
"PT005", # deprecated
"RET505",
"S404",
"SIM105",
"SIM115",
"UP027", # deprecated
"UP038", # https://github.com/astral-sh/ruff/issues/7871
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
]

[tool.ruff.lint.mccabe]
max-complexity = 45
Expand Down

0 comments on commit 62f28de

Please sign in to comment.