Pep8 notes

From raju

ignore some errors

    pep8 --ignore E501,E303

pep8 rcfile

The preferred way is to use a setup.cfg in the top-level of the project (.cfg has the same syntax as a .ini file), which should contain a [pep8] section. For example:

    ignore = E226,E302,E41
    max-line-length = 160

The error codes are defined in

Where to put the import statements - beginning or middle? recommends to always import at the top of the file, just after any module comments and docstrings, and before module globals and constants.