Skip to content

Commit

Permalink
Add repo-review pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Aug 6, 2024
1 parent 715ef95 commit 4a48455
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ repos:
- id: ruff-format

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.7.0"
rev: 1.7.0
hooks:
- id: pyproject-fmt
exclude: docs/examples/

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.9.0'
rev: v1.9.0
hooks:
- id: mypy
args: [--strict]
Expand All @@ -31,3 +31,8 @@ repos:
- importlib_metadata
- typing-extensions>=4.5
- rich

- repo: https://github.com/scientific-python/cookie
rev: 2024.04.23
hooks:
- id: sp-repo-review
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ from-first = false
lines-between-types = 1
order-by-type = true

[tool.repo-review]
ignore = ["PP305", "GH103", "GH212", "MY100", "PC111", "PC160", "PC170", "PC180", "PC901"]

[tool.pytest.ini_options]
minversion = "7"
testpaths = ["testing"]
filterwarnings = [
"error",
Expand Down

0 comments on commit 4a48455

Please sign in to comment.