diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c203ce9..f0ae2ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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" @@ -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]"] diff --git a/pyproject.toml b/pyproject.toml index c4c99d6..5054a2a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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) +] \ No newline at end of file