mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
24 lines
349 B
Bash
Executable File
24 lines
349 B
Bash
Executable File
#!/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
|
|
exit 1
|
|
fi
|
|
isort -y hyperglass/**/*.py
|
|
if [[ ! $? == 0 ]]; then
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
make_badge
|
|
# isort_all
|
|
|
|
exit 0 |