1- #: W191
1+ #: E117 W191
22if False :
33 print # indented with 1 tab
44#:
77#: W191
88y = x == 2 \
99 or x == 3
10- #: E101 W191 W504
10+ #: E101 E117 W191 W504
1111if (
1212 x == (
1313 3
1414 ) or
1515 y == 4 ):
1616 pass
17- #: E101 W191
17+ #: E101 E117 W191
1818if x == 2 \
1919 or y > 1 \
2020 or x == 3 :
2121 pass
22- #: E101 W191
22+ #: E101 E117 W191
2323if x == 2 \
2424 or y > 1 \
2525 or x == 3 :
2626 pass
2727#:
2828
29- #: E101 W191 W504
29+ #: E101 E117 W191 W504
3030if (foo == bar and
3131 baz == frop ):
3232 pass
33- #: E101 W191 W504
33+ #: E101 E117 W191 W504
3434if (
3535 foo == bar and
3636 baz == frop
3737):
3838 pass
3939#:
4040
41- #: E101 E101 W191 W191
41+ #: E101 E101 E117 W191 W191
4242if start [1 ] > end_col and not (
4343 over_indent == 4 and indent_next ):
4444 return (0 , "E121 continuation line over-"
4545 "indented for visual indent" )
4646#:
4747
48- #: E101 W191
48+ #: E101 E117 W191
4949
5050
5151def long_function_name (
5252 var_one , var_two , var_three ,
5353 var_four ):
5454 print (var_one )
55- #: E101 W191 W504
55+ #: E101 E117 W191 W504
5656if ((row < 0 or self .moduleCount <= row or
5757 col < 0 or self .moduleCount <= col )):
5858 raise Exception ("%s,%s - %s" % (row , col , self .moduleCount ))
59- #: E101 E101 E101 E101 W191 W191 W191 W191 W191 W191
59+ #: E101 E101 E101 E101 E117 W191 W191 W191 W191 W191 W191
6060if bar :
6161 return (
6262 start , 'E121 lines starting with a '
@@ -65,35 +65,35 @@ def long_function_name(
6565 "bracket's line"
6666 )
6767#
68- #: E101 W191 W504
68+ #: E101 E117 W191 W504
6969# you want vertical alignment, so use a parens
7070if ((foo .bar ("baz" ) and
7171 foo .bar ("frop" )
7272 )):
7373 print "yes"
74- #: E101 W191 W504
74+ #: E101 E117 W191 W504
7575# also ok, but starting to look like LISP
7676if ((foo .bar ("baz" ) and
7777 foo .bar ("frop" ))):
7878 print "yes"
79- #: E101 W191 W504
79+ #: E101 E117 W191 W504
8080if (a == 2 or
8181 b == "abc def ghi"
8282 "jkl mno" ):
8383 return True
84- #: E101 W191 W504
84+ #: E101 E117 W191 W504
8585if (a == 2 or
8686 b == """abc def ghi
8787jkl mno""" ):
8888 return True
89- #: W191:2:1 W191:3:1 E101:3:2
89+ #: W191:2:1 W191:3:1 E101:3:2 E117
9090if length > options .max_line_length :
9191 return options .max_line_length , \
9292 "E501 line too long (%d characters)" % length
9393
9494
9595#
96- #: E101 W191 W191 W504
96+ #: E101 E117 W191 W191 W504
9797if os .path .exists (os .path .join (path , PEP8_BIN )):
9898 cmd = ([os .path .join (path , PEP8_BIN )] +
9999 self ._pep8_options (targetfile ))
@@ -119,19 +119,19 @@ def long_function_name(
119119even though the noqa comment is not immediately after the string
120120''' + foo # noqa
121121#
122- #: E101 W191
122+ #: E101 E117 W191
123123if foo is None and bar is "frop" and \
124124 blah == 'yeah' :
125125 blah = 'yeahnah'
126126
127127
128128#
129- #: W191 W191 W191
129+ #: E117 W191 W191 W191
130130if True :
131131 foo (
132132 1 ,
133133 2 )
134- #: W191 W191 W191 W191 W191
134+ #: E117 W191 W191 W191 W191 W191
135135def test_keys (self ):
136136 """areas.json - All regions are accounted for."""
137137 expected = set ([
0 commit comments