summaryrefslogtreecommitdiff
path: root/.git-pre-commit
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-03-24 13:08:36 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-03-24 13:08:36 +0100
commitba475eb52299d4cc057f66b4d341353a99c72dd4 (patch)
tree1e6ef326162cad07b560d335b89dca3ca9b6d04e /.git-pre-commit
parenta3f7f7e7f40c0b812d0b0cc4a31a49e7d6391343 (diff)
downloadpsutil-ba475eb52299d4cc057f66b4d341353a99c72dd4.tar.gz
update docstring
Diffstat (limited to '.git-pre-commit')
-rwxr-xr-x.git-pre-commit11
1 files changed, 9 insertions, 2 deletions
diff --git a/.git-pre-commit b/.git-pre-commit
index 071957d1..372d8091 100755
--- a/.git-pre-commit
+++ b/.git-pre-commit
@@ -6,8 +6,15 @@
"""
This gets executed on 'git commit' and rejects the commit in case the
-submitted code does not pass validation.
-Install it with "make install-git-hooks".
+submitted code does not pass validation. Validation is run only against
+the *.py files which were modified in the commit. Checks:
+
+- assert no space at EOLs
+- assert not pdb.set_trace in code
+- assert no bare except clause ("except:") in code
+- assert "flake8" returns no warnings
+
+Install this with "make install-git-hooks".
"""
from __future__ import print_function