Commits

Marc Labbe  committed a8a87a9 Merge

Merged tarek/flake8 into default

  • Participants
  • Parent commits 10a62bf, ee560cf

Comments (0)

Files changed (4)

File docs/index.rst

 
 .. toctree::
 
-    api
-    extensions
     config
+    warnings
     vcs
     buildout
     setuptools
-    warnings
+    api
+    extensions
     changes
 
 Original Projects

File docs/vcs.rst

 To use the Git hook on any *commit*, add a **pre-commit** file in the
 *.git/hooks* directory containing::
 
-    #!/usr/bin/python
+    #!/usr/bin/env python
     import sys
     from flake8.run import git_hook
 

File flake8/hooks.py

 
 def git_hook(complexity=-1, strict=False, ignore=None, lazy=False):
     """This is the function used by the git hook.
-    
+
     :param int complexity: (optional), any value > 0 enables complexity
         checking with mccabe
     :param bool strict: (optional), if True, this returns the total number of

File flake8/main.py

 
 
 def check_file(path, ignore=(), complexity=-1):
-    """Checks a file using pep8 and pyflakes by default and mccabe 
-    optionally.
+    """Checks a file using pep8 and pyflakes by default and mccabe optionally.
 
     :param str path: path to the file to be checked
     :param tuple ignore: (optional), error and warning codes to be ignored