Skip to content

Commit 95f356d

Browse files
committed
Also add run to the other invocations
1 parent eb7c9f4 commit 95f356d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pre_commit/resources/hook-tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ if ((WHICH_RETV == 0)); then
5959
pre-commit run $args --config {config_file}
6060
PRE_COMMIT_RETV=$?
6161
elif ((ENV_PYTHON_RETV == 0)); then
62-
"$ENV_PYTHON" -m pre_commit.main $args
62+
"$ENV_PYTHON" -m pre_commit.main run $args
6363
PRE_COMMIT_RETV=$?
6464
else
65-
python -m pre_commit.main $args
65+
python -m pre_commit.main run $args
6666
PRE_COMMIT_RETV=$?
6767
fi
6868

0 commit comments

Comments
 (0)