erplibre/script/maintenance/black.sh
2021-06-27 00:52:18 -04:00

10 lines
264 B
Bash
Executable file

#!/usr/bin/env bash
# This will format all python file
# argument 1: directory or file to format
source ./.venv/bin/activate
black -l 79 --experimental-string-processing -t py37 $@
retVal=$?
if [[ $retVal -ne 0 ]]; then
echo "Error black format"
exit 1
fi