Skip to content

Commit

Permalink
Add repo-review (#456)
Browse files Browse the repository at this point in the history
* Added repo-review CI workflow.

* Update ci-repo-review.yml

Fixed dodgy indents

* Update ci-repo-review.yml

Added actions/checkout

* Moved repo-review from GHA to pre-commit

---------

Co-authored-by: Henry Wright <[email protected]>
  • Loading branch information
ukmo-ccbunney and HGWright committed Sep 20, 2024
1 parent 5b5cb1c commit 9efd012
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
8 changes: 8 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

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -44,3 +45,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
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,26 @@ line_length = 79
profile = "black"
skip_gitignore = "True"
verbose = "False"

[tool.repo-review]
# These are a list of the currently failing tests:
ignore = [
"PY005", # Has tests folder
"PP003", # Does not list wheel as a build-dep
"PP304", # Sets the log level in pytest
"PP305", # Specifies xfail_strict
"PP306", # Specifies strict config
"PP307", # Specifies strict markers
"PP309", # Filter warnings specified
"GH104", # Use unique names for upload-artifact
"GH212", # Require GHA update grouping
"PC110", # Uses black or ruff-format
"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
"PC901", # Custom pre-commit CI message
"MY100", # Uses MyPy (pyproject config)
"RF001", # Uses RUFF
]

0 comments on commit 9efd012

Please sign in to comment.