From 0282a3b57655629ec61e031474a0629df467074f Mon Sep 17 00:00:00 2001 From: Neil Shephard Date: Wed, 20 Nov 2024 11:30:28 +0000 Subject: [PATCH] ci(pre-commit): Adds pygrep repo to pre-commit hooks Closes #50 [PC170 : Uses PyGrep hooks (only needed if rST present)](https://learn.scientific-python.org/development/guides/style#PC170) Enables the [pygrep](https://github.com/pre-commit/pygrep-hooks) not just for restructured text but also some other Python hooks it enables. --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec4ffe7..d46826a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -73,6 +73,16 @@ repos: hooks: - id: numpydoc-validation + - repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.10.0 + hooks: + - id: rst-backticks + - id: rst-directive-colons + - id: rst-inline-touching-normal + - id: python-no-eval + - id: python-check-blanket-noqa + - id: python-check-blanket-type-ignore + - id: python-check-mock-methods - repo: local hooks: - id: pylint