forked from mirrors/thatmattlove-hyperglass
validate examples in pre-commit
This commit is contained in:
parent
ff8a1df3bf
commit
f6ba24524f
1 changed files with 7 additions and 7 deletions
14
hooks.sh
14
hooks.sh
|
|
@ -1,12 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
function make_badge () {
|
||||
./manage.py line-count-badge
|
||||
if [[ ! $? == 0 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
function isort_all () {
|
||||
isort -y hyperglass/*.py
|
||||
if [[ ! $? == 0 ]]; then
|
||||
|
|
@ -18,6 +11,13 @@ function isort_all () {
|
|||
fi
|
||||
}
|
||||
|
||||
function validate_examples () {
|
||||
python3 ./tests/validate_examples.py
|
||||
if [[! $? == 0]]; then
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# make_badge
|
||||
# isort_all
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue