Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
c502d0ee
Commit
c502d0ee
authored
Jan 14, 2019
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
.pre-commit-config.yaml
View file @
c502d0ee
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment