main
text 9 lines 294 Bytes
Raw
1 #!/usr/bin/env bash
2
3 ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=pre-commit)
4 # end templated
5
6 HERE="$(cd "$(dirname "$0")" && pwd)"
7 ARGS+=(--hook-dir "$HERE" -- "$@")
8
9 exec uv run --active --index https://pypi.org/simple --with pre-commit,pre-commit-uv pre-commit "${ARGS[@]}"