Debian Codegraph @

.githooks/pre-commit

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2 # File generated by pre-commit: https://pre-commit.com
3 # ID: 138fd403232d2ddd5efb44317e38bf03
4
5 # start templated
6 INSTALL_PYTHON=/usr/bin/python3scip-shell filesystem . . `/usr/bin/python3`.
7 ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=pre-commit)
8 # end templated
9
10 HERE="$(cd "$(dirnamescip-shell system . . dirname. "$0")" && pwdscip-shell system . . pwd.)"
11 ARGS+=(--hook-dir "$HERE" -- "$@")
12
13 if [scip-shell system . . `[`. -x "$INSTALL_PYTHON" ]; then
14 exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
15 elif command -v pre-commit > /dev/nullscip-shell filesystem . . `/dev/null`.; then
16 exec pre-commit "${ARGS[@]}"
17 else
18 echoscip-shell system . . echo. '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
19 exit 1
20 fi