File size: 296 Bytes
96bb363 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/usr/bin/env bash
set -ev
FIX_FLAG=""
if [[ "$1" == "--fix" ]]; then
FIX_FLAG="--fix"
fi
if [[ -z $GITHUB_ACTION ]]; then
ruff format openg2g tests examples
else
ruff format --check openg2g tests examples
fi
ruff check $FIX_FLAG openg2g tests examples
ty check openg2g tests examples
|