Skip to content

Commit d950ee7

Browse files
committed
add lint check for .rst files incorrectly placed in the top-level dir, also bump blocklint version
1 parent 8055103 commit d950ee7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,15 @@ repos:
4949
- id: mypy
5050
exclude: tests/
5151
- repo: https://github.com/PrincetonUniversity/blocklint
52-
rev: v0.2.4
52+
rev: v0.2.5
5353
hooks:
5454
- id: blocklint
5555
exclude: 'docs/Makefile|docs/release_notes.rst|tox.ini'
56+
- repo: local
57+
hooks:
58+
- id: check-rst-files
59+
name: Check for .rst files in the top-level directory
60+
entry: sh -c 'ls *.rst 1>/dev/null 2>&1 && { echo "found .rst file in top-level folder"; exit 1; } || exit 0'
61+
language: system
62+
always_run: true
63+
pass_filenames: false

0 commit comments

Comments
 (0)