diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5b7c887b..d28a324c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,13 +13,13 @@ repos: - id: ruff-format - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.7.0" + rev: 1.7.0 hooks: - id: pyproject-fmt exclude: docs/examples/ - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.9.0' + rev: v1.9.0 hooks: - id: mypy args: [--strict] @@ -31,3 +31,8 @@ repos: - importlib_metadata - typing-extensions>=4.5 - rich + +- repo: https://github.com/scientific-python/cookie + rev: 2024.04.23 + hooks: + - id: sp-repo-review diff --git a/pyproject.toml b/pyproject.toml index dd607d1b..0966b807 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,7 +128,11 @@ from-first = false lines-between-types = 1 order-by-type = true +[tool.repo-review] +ignore = ["PP305", "GH103", "GH212", "MY100", "PC111", "PC160", "PC170", "PC180", "PC901"] + [tool.pytest.ini_options] +minversion = "7" testpaths = ["testing"] filterwarnings = [ "error",