Skip to content

Commit

Permalink
Enable extra Ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Nov 2, 2024
1 parent 4263af4 commit c45addc
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 23 deletions.
7 changes: 6 additions & 1 deletion doc/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
extend = "../pyproject.toml"

[lint]
ignore = ["D"]
extend-ignore = [
"A001",
"D",
"ERA001",
"INP001",
]
39 changes: 19 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,25 @@ packages = ["fronts"]
version = {attr = "fronts.__version__"}

[tool.ruff.lint]
extend-select = [
"B",
"C4",
"D",
"F",
"FLY",
"FURB",
"I",
"ICN",
"INT",
"PIE",
"PLC",
"PLE",
"PLW",
"Q",
"RSE",
"RUF",
"TCH",
"UP",
"YTT",
extend-select = ["ALL"]
extend-ignore = [
"ANN",
"ARG001",
"C901",
"COM812",
"E501",
"FBT002",
"ISC001",
"N",
"NPY201",
"PLR0912",
"PLR0913",
"PLR0915",
"PLR2004",
"PYI",
"S101",
"SIM105",
"T201",
]

[tool.ruff.lint.pydocstyle]
Expand Down
5 changes: 4 additions & 1 deletion symbolic/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
extend = "../pyproject.toml"

[lint]
ignore = ["D"]
extend-ignore = [
"D",
"ERA001",
]
6 changes: 5 additions & 1 deletion tests/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
extend = "../pyproject.toml"

[lint]
ignore = ["D"]
extend-ignore = [
"D",
"PT011",
"S603",
]

0 comments on commit c45addc

Please sign in to comment.