14 lines
220 B
Plaintext
14 lines
220 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
if ! which black &>/dev/null; then
|
||
|
echo "Black is required to format this project"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
black .
|
||
|
ret=$?
|
||
|
if [[ $ret -eq 0 ]]; then
|
||
|
echo "Successfully formatted project!"
|
||
|
fi
|
||
|
exit $ret
|