[git] add ruff-format hook

This commit is contained in:
odrling 2024-04-07 01:10:34 +02:00
parent 94749cab69
commit db80ace55e
No known key found for this signature in database
GPG key ID: EC907F69A27A90C5

View file

@ -32,6 +32,7 @@ runif() {
runif "isort" isort . --check
runif "black" black . --check
runif "ruff" ruff check .
runif "ruff-format" ruff format --check .
runif "pyright" pyright .
runif "clangformat" 'fd --glob \*.c | xargs clang-format -Werror -n'
runif "gofmt" '[ "$(gofmt -l . | wc -l)" -eq 0 ] || (gofmt -l -d .; exit 1)'