Skip to content

Commit

Permalink
DX: apply new ComPWA dev configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Aug 6, 2024
1 parent f53a2e3 commit 2a29407
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 36 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
layout anaconda
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.5.6
hooks:
- id: ruff
args: [--fix]
Expand Down Expand Up @@ -57,7 +57,7 @@ repos:
exclude: (?x)^(labels.*\.toml)$

- repo: https://github.com/ComPWA/policy
rev: 0.3.9
rev: 0.3.15
hooks:
- id: check-dev-files
args:
Expand All @@ -71,7 +71,7 @@ repos:
- --repo-title=BOSS Documentation

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.10.1
rev: v8.13.1
hooks:
- id: cspell

Expand All @@ -87,6 +87,6 @@ repos:
)$
- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.370
rev: v1.1.374
hooks:
- id: pyright
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"notebook.source.organizeImports": "explicit"
},
"notebook.formatOnSave.enabled": true,
"python.terminal.activateEnvironment": false,
"python.testing.pytestArgs": ["--color=no", "--no-cov"],
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": false,
Expand Down
43 changes: 11 additions & 32 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,39 +123,10 @@ 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 = [
"ANN401",
"COM812",
"CPY001",
"D101",
"D102",
"D103",
Expand All @@ -165,12 +136,20 @@ ignore = [
"D213",
"D407",
"D416",
"DOC",
"E501",
"FURB101",
"FURB103",
"FURB140",
"G004",
"ISC001",
"PLW1514",
"PT001",
"PTH",
"SIM108",
"UP036",
]
select = ["ALL"]
task-tags = ["cspell"]

[tool.ruff.lint.isort]
Expand Down

0 comments on commit 2a29407

Please sign in to comment.