Files
libratbag/tools/python-ruff.sh
2023-03-01 22:17:31 +03:00

11 lines
246 B
Bash
Executable File

#!/bin/sh
if [ -z "$MESON_SOURCE_ROOT" ]; then
echo "Expected \$MESON_SOURCE_ROOT to be set. Are you sure you are running this through ninja?"
exit 100
fi
cd "$MESON_SOURCE_ROOT" || exit 101
ruff check --fix $(git ls-files "*.py" "*.py.in")