Add safe mode to Black
This commit is contained in:
parent
71d94bbeab
commit
3aa74a3940
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