Add safe mode to Black

This commit is contained in:
Joshua Boniface 2021-11-06 02:59:54 -04:00
parent 5c620262e9
commit 3779bc960e
1 changed files with 1 additions and 1 deletions

2
format
View File

@ -5,7 +5,7 @@ if ! which black &>/dev/null; then
exit 1 exit 1
fi fi
black --exclude api-daemon/migrations . black --safe --exclude api-daemon/migrations .
ret=$? ret=$?
if [[ $ret -eq 0 ]]; then if [[ $ret -eq 0 ]]; then
echo "Successfully formatted project!" echo "Successfully formatted project!"