Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# See https://github.com/scientific-python/cookie#sp-repo-review for repo-review

ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"
Expand Down Expand Up @@ -49,3 +50,9 @@ repos:
hooks:
- id: sort-all
types: [file, python]

- repo: https://github.com/scientific-python/cookie
rev: 2024.08.19
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,26 @@ ignore = [
[tool.pytest.ini_options]
addopts = "-ra -v --doctest-modules"
testpaths = ["src/stratify"]

[tool.repo-review]
# These are a list of the currently failing tests to be fixed later:
ignore = [
"PY004", # Has docs folder
"PP302", # Sets a minimum pytest to at least 6
"PP304", # Sets the log level in pytest
"PP305", # Specifies xfail_strict
"PP306", # Specifies strict config
"PP307", # Specifies strict markers
"PP309", # Filter warnings specified
"PY007", # Supports an easy task runner (nox or tox)
"PP003", # Does not list wheel as a build-dep
"PC111", # Uses blacken-docs
"PC140", # Uses a type checker
"PC160", # Uses a spell checker
"PC170", # Uses PyGrep hooks (only needed if rST present)
"PC180", # Uses a markdown formatter
"PC190", # Uses Ruff
"MY100", # Uses MyPy (pyproject config)
"RF001", # Has Ruff config
"RTD100" # Uses ReadTheDocs (pyproject config)
]