Skip to content

Commit

Permalink
DX: activate ALL Ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Aug 6, 2024
1 parent 228841c commit bcaaff2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
metadata.vscode
- repo: https://github.com/ComPWA/policy
rev: 0.3.11
rev: 0.3.13
hooks:
- id: check-dev-files
args:
Expand Down
56 changes: 23 additions & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,41 +226,13 @@ docstring-code-format = true
line-ending = "lf"

[tool.ruff.lint]
extend-select = [
"A",
"B",
"BLE",
"C4",
"C90",
"D",
"EM",
"ERA",
"FA",
"I",
"ICN",
"INP",
"ISC",
"N",
"NPY",
"PGH",
"PIE",
"PL",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"T20",
"TCH",
"TID",
"TRY",
"UP",
"YTT",
]
ignore = [
"ANN",
"ARG00",
"B028",
"C408",
"COM812",
"CPY001",
"D101",
"D102",
"D103",
Expand All @@ -270,17 +242,35 @@ ignore = [
"D213",
"D407",
"D416",
"DOC",
"E501",
"FBT",
"FURB101",
"FURB103",
"FURB140",
"G004",
"ISC001",
"ISC003",
"PLC2401",
"PLR0913",
"PLW1514",
"PT001",
"PTH",
"S301",
"SIM108",
]
select = ["ALL"]
task-tags = ["cspell"]

[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["display"]

[tool.ruff.lint.flake8-self]
ignore-names = [
"_latex",
"_print",
]

[tool.ruff.lint.isort]
split-on-trailing-comma = false

Expand Down Expand Up @@ -342,10 +332,10 @@ ignore-names = [
"INP001",
"PGH001",
"PLC2701",
"PLR0913",
"PLR2004",
"PLR6301",
"S101",
"SLF001",
"T20",
]

Expand Down

0 comments on commit bcaaff2

Please sign in to comment.