diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dbb663412..d19272cdb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,3 +39,12 @@ repos: - pytest # Zarr v2 - types-redis + - repo: https://github.com/scientific-python/cookie + rev: 2024.04.23 + hooks: + - id: sp-repo-review + - repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.10.0 + hooks: + - id: rst-directive-colons + - id: rst-inline-touching-normal diff --git a/pyproject.toml b/pyproject.toml index 8bee491a8..38b6880b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -257,3 +257,9 @@ filterwarnings = [ markers = [ "gpu: mark a test as requiring CuPy and GPU" ] + +[tool.repo-review] +ignore = [ + "PC111", # fix Python code in documentation - enable later + "PC180", # for JavaScript - not interested +]