From a903b5095bcb5bdf0641f9ee7e930a413372b27f Mon Sep 17 00:00:00 2001 From: Henry Wright Date: Fri, 27 Sep 2024 14:55:17 +0100 Subject: [PATCH 1/3] add repo review precommit action --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c203ce9..f76c75f 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,10 @@ 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]"] # TODO: Only neededed if extra dependencies are required + #args: ["--show=errskip"] # show everything for the moment \ No newline at end of file From 9fc0b4bde396054dee4fb0ba8348e9b273aaa8a7 Mon Sep 17 00:00:00 2001 From: Henry Wright Date: Fri, 27 Sep 2024 15:05:38 +0100 Subject: [PATCH 2/3] remove TODO --- .pre-commit-config.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f76c75f..f0ae2ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,5 +55,4 @@ repos: rev: 2024.08.19 hooks: - id: sp-repo-review - additional_dependencies: ["repo-review[cli]"] # TODO: Only neededed if extra dependencies are required - #args: ["--show=errskip"] # show everything for the moment \ No newline at end of file + additional_dependencies: ["repo-review[cli]"] From 24eaf288e61d13f3a648d245a6d3d3272f6b3085 Mon Sep 17 00:00:00 2001 From: Henry Wright Date: Fri, 27 Sep 2024 15:27:17 +0100 Subject: [PATCH 3/3] add ignore list to pyproject.toml --- pyproject.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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