Skip to content

Commit 8bf3d7b

Browse files
committed
Align pre-commit-config and pyproject with SciTools template.
1 parent 22092d7 commit 8bf3d7b

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
ci:
77
autofix_prs: false
8+
autofix_commit_msg: "style: pre-commit fixes"
89
autoupdate_commit_msg: "chore: update pre-commit hooks"
10+
autoupdate_schedule: "monthly"
911

1012
repos:
1113
- repo: https://github.com/pre-commit/pre-commit-hooks

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ ignore = [
7777
[tool.pytest.ini_options]
7878
addopts = "-ra -v --doctest-modules"
7979
testpaths = ["src/stratify"]
80+
log_level = "INFO"
8081

8182
[tool.mypy]
8283
disable_error_code = ["call-arg", "no-untyped-def", "no-untyped-call", "attr-defined", "misc", "index", "var-annotated", "assignment"]
@@ -254,8 +255,12 @@ convention = "numpy"
254255
ignore-words-list = "ND,Nd"
255256

256257
[tool.repo-review]
257-
# These are a list of the currently failing tests to be fixed later:
258+
258259
ignore = [
260+
# https://learn.scientific-python.org/development/guides/packaging-simple#PP006
261+
"PP006", # Uses dev dependency group
262+
263+
# These are a list of the currently failing tests to be fixed later:
259264
"PY004", # Has docs folder
260265
"PP302", # Sets a minimum pytest to at least 6
261266
"PP304", # Sets the log level in pytest

0 commit comments

Comments
 (0)