Skip to content

Instantly share code, notes, and snippets.

@t2y
Created September 8, 2012 07:22
Show Gist options
  • Save t2y/3672535 to your computer and use it in GitHub Desktop.
Save t2y/3672535 to your computer and use it in GitHub Desktop.
"pytest --pep8" command output
$ py.test --pep8 ugly_sample.py
============================= test session starts ==============================
platform darwin -- Python 2.7.3 -- pytest-2.2.4
collected 1 items
ugly_sample.py F
=================================== FAILURES ===================================
__________________________________ PEP8-check __________________________________
/private/tmp/ugly_sample.py:6:11: E401 multiple imports on one line
import sys, os
^
/private/tmp/ugly_sample.py:9:16: E701 multiple statements on one line (colon)
class A(object): pass
^
/private/tmp/ugly_sample.py:12:14: E251 no spaces around keyword / parameter equals
def func(x, y = 2):
^
/private/tmp/ugly_sample.py:12:16: E251 no spaces around keyword / parameter equals
def func(x, y = 2):
^
/private/tmp/ugly_sample.py:15:1: E302 expected 2 blank lines, found 1
def main():
^
/private/tmp/ugly_sample.py:16:11: E231 missing whitespace after ','
l = [1,2, 3, 4, 5]
^
/private/tmp/ugly_sample.py:17:21: E231 missing whitespace after ':'
d = {'a': 1, 'b':2}
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment