Add black formatter to project root

This commit is contained in:
Joshua Boniface 2021-11-06 02:39:38 -04:00
parent 70bd601dc1
commit bf30b31db6
1 changed files with 13 additions and 0 deletions

13
format Executable file
View File

@ -0,0 +1,13 @@
#!/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