File size: 500 Bytes
0839907 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/bash
# Script to automatically format code and files
fastgen_root=$(git rev-parse --show-toplevel)
echo "Formatting $fastgen_root"
dependencies=($(pip3 freeze | grep -E 'black==23.10.0|ruff==0.6.9|mypy==1.9.0|types-psutil'))
if [ "${#dependencies[@]}" -ne 6 ]; then
python3 -m pip install --upgrade pip
python3 -m pip install black==23.10.0
python3 -m pip install ruff==0.6.9
python3 -m pip install mypy==1.9.0
python3 -m pip install types-psutil
fi
set -e
make format
|