Commits

Ian Cordasco committed e6815ab

Update the VCS docs

Also, update the git_hook auto-installer text.
Fixes #87 on BitBucket

Comments (0)

Files changed (2)

 file like this::
 
     [hooks]
-    commit = python:flake8.run.hg_hook
-    qrefresh = python:flake8.run.hg_hook
+    commit = python:flake8.hooks.hg_hook
+    qrefresh = python:flake8.hooks.hg_hook
 
     [flake8]
     strict = 0
 
     #!/usr/bin/env python
     import sys
-    from flake8.run import git_hook
+    from flake8.hooks import git_hook
 
     COMPLEXITY = 10
     STRICT = False
 
     if __name__ == '__main__':
         sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT, ignore='E501'))
+        # Alternatively
+        # sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT,
+        #                   ignore=['E501']))
 
 
 If *strict* option is set to **True**, any warning will block the commit. When
     if lazy:
         gitcmd = gitcmd.replace('--cached ', '')
 
+    if hasattr(ignore, 'split'):
+        ignore = ignore.split(',')
+
     _, files_modified, _ = run(gitcmd)
 
     flake8_style = get_style_guide(