mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
tools: skip linter checks if linters are not installed
This commit is contained in:
@@ -13,4 +13,9 @@ if [ -z "$files" ]; then
|
||||
exit 77
|
||||
fi
|
||||
|
||||
command -v ruff >/dev/null 2>&1 || {
|
||||
echo >&2 "ruff is not installed"
|
||||
exit 77
|
||||
}
|
||||
|
||||
ruff check $files
|
||||
|
||||
Reference in New Issue
Block a user