Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47b7ca4

Browse files
committed
Improve failure message for pre-commit. Closes #36
1 parent aae90cf commit 47b7ca4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pre_commit/resources/pre-commit.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
#!/usr/bin/env bash
22

3-
pre-commit
3+
which pre-commit > /dev/null
4+
if [ $? -ne 0 ]; then
5+
echo '`pre-commit` not found. Did you forget to activate your virtualenv?'
6+
exit 1
7+
fi
8+
9+
pre-commit

0 commit comments

Comments
 (0)