vbv/format_code.sh

16 lines
244 B
Bash
Executable File

#!/bin/bash
# script should fail when any process returns non zero code
set -e
# set location to script directory
cd "${0%/*}"
echo 'format client code'
npm run prettier
echo 'format python code'
ruff check server --fix
ruff format server