1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-01-17 00:38:06 +00:00
thatmattlove-hyperglass/hooks.sh
2020-03-21 15:00:37 -07:00

24 lines
No EOL
356 B
Bash
Executable file

#!/usr/bin/env bash
function isort_all () {
isort -y hyperglass/*.py
if [[ ! $? == 0 ]]; then
exit 1
fi
isort -y hyperglass/**/*.py
if [[ ! $? == 0 ]]; then
exit 1
fi
}
function validate_examples () {
python3 ./validate_examples.py
if [[ ! $? == 0 ]]; then
exit 1
fi
}
# isort_all
validate_examples
exit 0