See the example below: when there are multiple #autopep8: off/on blocks in a file, they do not seem to be respected anymore. Enclosing both lists within just one such block works correctly.
Python Code
# autopep8: off
myneatlist=[
("foo", 1,),
("bar", 2,),
("foobar", 3,),
]
# autopep8: on
# autopep8: off
myneatlist2=[
("foo", 1,),
("bar", 2,),
("foobar", 3,),
]
# autopep8: on
Configuration
.pep8:
[pycodestyle]
max_line_length = 175
#E302 - Add missing 2 blank lines.
#E305 - Expected 2 blank lines after end of function or class.
#E701 - Put colon-separated compound statement on separate lines.
ignore = E302, E305, E701
See the example below: when there are multiple #autopep8: off/on blocks in a file, they do not seem to be respected anymore. Enclosing both lists within just one such block works correctly.
Python Code
Configuration
.pep8
: