Commit c502d0ee authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[pre-commit] Add sphinx local pre-commit hook

This will run sphinx the same way as in the CI.
parent 6869092f
......@@ -22,3 +22,21 @@ repos:
hooks:
- id: bandit
exclude: beat/editor/test
- repo: local
hooks:
- id: sphinx-build
name: sphinx build
entry: python -m sphinx.cmd.build
args: [-a, -E, -W, doc, sphinx]
language: system
files: ^doc/
types: [file]
pass_filenames: false
- id: sphinx-doctest
name: sphinx doctest
entry: python -m sphinx.cmd.build
args: [-a, -E, -b, doctest, doc, sphinx]
language: system
files: ^doc/
types: [file]
pass_filenames: false
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment