Skip to content

Commit 156bd11

Browse files
chore: Add pre-commit/pygrep-hooks to pre-commit hooks (#2382)
* Impliment repo-review PC170: Uses PyGrep hooks (only needed if RST present). - c.f. https://learn.scientific-python.org/development/guides/style/#PC170
1 parent f04796f commit 156bd11

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ repos:
2727
# exclude generated files
2828
exclude: ^validation/|\.dtd$|\.xml$
2929

30+
- repo: https://github.com/pre-commit/pygrep-hooks
31+
rev: "v1.10.0"
32+
hooks:
33+
- id: rst-backticks
34+
- id: rst-directive-colons
35+
- id: rst-inline-touching-normal
36+
3037
- repo: https://github.com/astral-sh/ruff-pre-commit
3138
rev: "v0.1.4"
3239
hooks:

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. pyhf documentation master file, created by
22
sphinx-quickstart on Fri Feb 9 11:58:49 2018.
33
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
4+
contain the root ``toctree`` directive.
55
66
.. toctree::
77
:hidden:

0 commit comments

Comments
 (0)