2
0
python-capport/fmt.sh

14 lines
190 B
Bash
Executable File

#!/bin/sh
self=$(dirname "$(readlink -f "$0")")
cd "${self}"
if [ -d venv ]; then
python=venv/bin/python3
else
python=python3
fi
"${python}" -m black src
"${python}" -m isort src