Skip to content

Commit

Permalink
build: more pre-commit checks
Browse files Browse the repository at this point in the history
I tried `check-hooks-apply`, but it complained that check-symlinks
doesn't apply because I have no symlinks.  That's dumb. I want to
protect against future additions of bad symlinks.

I tried `rst-backticks`, but it complained about every single-backticked
thing in my docs.  Sphinx allows single backticks, they just mean
something different than code.
  • Loading branch information
nedbat committed Jan 14, 2025
1 parent 4227045 commit f3f4730
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,18 @@ repos:
exclude: "(status\\.json|\\.min\\.js)$"
- id: trailing-whitespace
exclude: "stress_phystoken|\\.py,cover$"

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-directive-colons
- id: rst-inline-touching-normal

- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.0
hooks:
- id: sphinx-lint

- repo: meta
hooks:
- id: check-useless-excludes

0 comments on commit f3f4730

Please sign in to comment.