Files
synology-api-python/scripts/check_format.sh
Quentame 2827c6f046 Back is black (#17)
* Format with black
2020-03-26 00:37:28 +01:00

17 lines
309 B
Bash
Executable File

./scripts/common.sh
if ! hash python3; then
echo "python3 is not installed"
exit 0
fi
ver=$(python3 -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]\).*/\1\2/')
if [ "$ver" -lt "36" ]; then
echo "This script requires python 3.6 or greater"
exit 0
fi
pip install black==19.10b0
black --check --fast .