Skip to content

Commit d8bc0d1

Browse files
Enforce repo-review rules
1 parent 6605d9d commit d8bc0d1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ repos:
2020
- id: ruff
2121
args: ["--fix", "--show-fixes"]
2222
- id: ruff-format
23+
24+
- repo: https://github.com/scientific-python/cookie
25+
rev: 2024.04.23
26+
hooks:
27+
- id: sp-repo-review

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ exclude_lines = [
9898
"pragma: ${PY_MAJOR_VERSION} no cover",
9999
]
100100

101+
[tool.repo-review]
102+
ignore = ["PY005", "PY007", "PP302", "PP304", "PP308", "GH103", "GH212", "PC111", "PC140", "PC160", "PC170", "PC180", "MY100", "RF103"]
103+
101104
[tool.pytest.ini_options]
102105
addopts = "-ra --strict-config --strict-markers --cov=numcodecs --cov-report xml --doctest-modules --doctest-glob=*.pyx"
103106
doctest_optionflags = [

0 commit comments

Comments
 (0)