Skip to content

Commit 26075f1

Browse files
committed
pre-commit: Add additional checks
Signed-off-by: Stephen Finucane <[email protected]>
1 parent 3f6c4c8 commit 26075f1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: trailing-whitespace
6+
exclude: |
7+
(?x)^(
8+
sphinx/locale/.*
9+
| sphinx/templates/.*
10+
| tests/roots/.*
11+
)
12+
- id: end-of-file-fixer
13+
exclude: |
14+
(?x)^(
15+
sphinx/locale/.*
16+
| sphinx/search/minified-js/.*
17+
| sphinx/templates/.*
18+
| tests/roots/.*
19+
)
20+
- id: check-json
21+
- id: check-yaml
22+
- id: debug-statements
23+
exclude: '^sphinx/cmd/build.py$'
24+
225
- repo: https://github.com/astral-sh/ruff-pre-commit
326
rev: v0.0.284
427
hooks:

0 commit comments

Comments
 (0)