Skip to content

Commit

Permalink
chore: Add pre-commit/pygrep-hooks to pre-commit hooks (#2382)
Browse files Browse the repository at this point in the history
* Impliment repo-review PC170: Uses PyGrep hooks (only needed if RST present).
   - c.f. https://learn.scientific-python.org/development/guides/style/#PC170
  • Loading branch information
matthewfeickert authored Nov 17, 2023
1 parent f04796f commit 156bd11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ repos:
# exclude generated files
exclude: ^validation/|\.dtd$|\.xml$

- 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

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.4"
hooks:
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. pyhf documentation master file, created by
sphinx-quickstart on Fri Feb 9 11:58:49 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
contain the root ``toctree`` directive.
.. toctree::
:hidden:
Expand Down

0 comments on commit 156bd11

Please sign in to comment.