Skip to content

Commit 1f15702

Browse files
Add repo-review pre-commit hook
1 parent 715ef95 commit 1f15702

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ repos:
1313
- id: ruff-format
1414

1515
- repo: https://github.com/tox-dev/pyproject-fmt
16-
rev: "1.7.0"
16+
rev: 1.7.0
1717
hooks:
1818
- id: pyproject-fmt
1919
exclude: docs/examples/
2020

2121
- repo: https://github.com/pre-commit/mirrors-mypy
22-
rev: 'v1.9.0'
22+
rev: v1.9.0
2323
hooks:
2424
- id: mypy
2525
args: [--strict]
@@ -31,3 +31,8 @@ repos:
3131
- importlib_metadata
3232
- typing-extensions>=4.5
3333
- rich
34+
35+
- repo: https://github.com/scientific-python/cookie
36+
rev: 2024.04.23
37+
hooks:
38+
- id: sp-repo-review

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ from-first = false
128128
lines-between-types = 1
129129
order-by-type = true
130130

131+
[tool.repo-review]
132+
ignore = ["PP305", "GH103", "GH212", "PC111", "PC160", "PC160", "PC170", "PC180", "PC901", "MY100"]
133+
131134
[tool.pytest.ini_options]
135+
minversion = "7"
132136
testpaths = ["testing"]
133137
filterwarnings = [
134138
"error",

0 commit comments

Comments
 (0)