diff --git a/hooks.sh b/hooks.sh index 5a35350..40692cb 100755 --- a/hooks.sh +++ b/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