Skip to content

Commit 6889f7b

Browse files
Merge pull request #777 from jarrodmillman/pygrep-hooks
Add pygrep pre-commit hook
2 parents 5704874 + 8e71287 commit 6889f7b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,21 @@ repos:
3232
args: [--no-pycodestyle, --max-line-length=88]
3333

3434
- repo: https://github.com/astral-sh/ruff-pre-commit
35-
rev: 1dc9eb131c2ea4816c708e4d85820d2cc8542683 # frozen: v0.5.0
35+
rev: f6793c73d53e659efecf3b3c38d122fb6a2a969f # frozen: v0.5.1
3636
hooks:
3737
- id: ruff
3838
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
3939
- id: ruff-format
4040

4141
- repo: https://github.com/codespell-project/codespell
42-
rev: "193cd7d27cd571f79358af09a8fb8997e54f8fff" # frozen: v2.3.0
42+
rev: 193cd7d27cd571f79358af09a8fb8997e54f8fff # frozen: v2.3.0
4343
hooks:
4444
- id: codespell
4545
args: ["-w", "-L", "ans,nd,sav,mke,ags,mot,coo,whos,manuel"]
46+
47+
- repo: https://github.com/pre-commit/pygrep-hooks
48+
rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316 # frozen: v1.10.0
49+
hooks:
50+
# - id: rst-backticks
51+
- id: rst-directive-colons
52+
- id: rst-inline-touching-normal

intro/numpy/array_object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ NumPy Reference documentation
100100
Docstring:
101101
array(object, dtype=None, copy=True, order=None, subok=False, ndmin=0, ...
102102

103-
.. tip:
103+
.. tip::
104104

105105
.. sourcecode:: pycon
106106

0 commit comments

Comments
 (0)