validate examples in pre-commit

This commit is contained in:
checktheroads 2020-02-16 19:16:01 -07:00
parent ff8a1df3bf
commit f6ba24524f

View file

@ -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