Created
September 8, 2012 07:22
-
-
Save t2y/3672535 to your computer and use it in GitHub Desktop.
"pytest --pep8" command output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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