mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
17 lines
325 B
Bash
Executable File
17 lines
325 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
|
|
|
|
files=$(git ls-files "*.py" "*.py.in")
|
|
if [ -z "$files" ]; then
|
|
echo "Git didn't find any files"
|
|
exit 77
|
|
fi
|
|
|
|
ruff check $files
|