Add safe mode to Black
This commit is contained in:
parent
5c620262e9
commit
3779bc960e
2
format
2
format
|
@ -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!"
|
||||||
|
|
Loading…
Reference in New Issue