jcrocholl/pep8 — pull request #143 by pizen (2012-12-12 04:11:05+00:00)
Title: Add new CLI options for skipping a number of lines at the beginning and end of a file from being checked

I work with lots of Python code that resides in files where there is non-Python header and footer information in the files that is necessary for the larger system. These header and footer lines throw the pep8 checker off so I've added these CLI options that allow these lines to be ignored during the check. If the check is being run against a directory these options apply to all files found and checked.

New options:
--skip-first-lines=n
Prevents the first n lines of the file from being run through the checker. The line numbers are unaffected. If n=2 and there is an error on line 3 of the file pep8 will still report the error as being on line 3.

--skip-last-lines=n
Prevents the last n lines of the file from being run through the checker.