Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 5, 2023
1 parent 6b3a821 commit 9d554f6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"transisions"
],
"ignorePaths": [
"**/*.rst_t",
"**/.cspell.json",
".constraints/*.txt",
".editorconfig",
Expand Down
33 changes: 13 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ repos:
- id: check-hooks-apply
- id: check-useless-excludes

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.1.7
hooks:
- id: check-dev-files
args:
- --no-prettierrc
- --pin-requirements=bimonthly
- --repo-name=PawianTools
- --repo-title=Pawian Tools
- id: format-setup-cfg

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
Expand All @@ -31,17 +42,6 @@ repos:
args: ["--django"]
- id: trailing-whitespace

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.1.7
hooks:
- id: check-dev-files
args:
- --no-prettierrc
- --pin-requirements=bimonthly
- --repo-name=PawianTools
- --repo-title=Pawian Tools
- id: format-setup-cfg

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.11.0
hooks:
Expand Down Expand Up @@ -113,19 +113,12 @@ repos:
hooks:
- id: pyright

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args:
- --py36-plus

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
hooks:
- id: ruff
args:
- --fix
args: [--fix]
types_or: [python, pyi, jupyter]

- repo: https://github.com/ComPWA/mirrors-taplo
rev: v0.8.1
Expand Down
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ testpaths = [
]

[tool.ruff]
extend-include = ["*.ipynb"]
extend-select = [
"A",
"B",
Expand Down Expand Up @@ -178,6 +179,22 @@ target-version = "py37"
task-tags = ["cspell"]

[tool.ruff.per-file-ignores]
"*.ipynb" = [
"B018",
"C90",
"D",
"E402",
"E703",
"N806",
"N816",
"PLR09",
"PLR2004",
"PLW0602",
"PLW0603",
"S101",
"T201",
"TCH00",
]
"docs/*" = [
"E402",
"INP001",
Expand Down

0 comments on commit 9d554f6

Please sign in to comment.