Commits

Ian Cordasco committed 106b15a

Closes #37 again

Although I cannot reproduce the error in clean virtualenv's I added an extra
check to be 100% certain.

Also, # nopep8 is entirely documented in the README. I entirely forgot about
it when it was first introduced (except for adding it to the "Changes""
section).

Comments (0)

Files changed (2)

 
     # flake8: noqa
 
-- lines that contains a "# NOQA" comment at the end will not issue a warning.
+- lines that contain a "# NOQA" comment at the end will not issue pyflakes 
+  warnings.
+- lines that contain a "# NOPEP8" comment at the end will not issue pep8 
+  warnings.
 - a Mercurial hook.
 - a McCabe complexity checker.
 
     line = physical_line.rstrip()
     length = len(line)
     if length > max_line_length:
+        if line.strip().lower().endswith('# nopep8'):
+            return
         if hasattr(line, 'decode'):   # Python 2
             # The line could contain multi-byte characters
             try:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.