hhatto / autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide.
https://pypi.org/project/autopep8/
MIT License
4.54k stars 291 forks source link

[pep8] options ignored when [flake8] select= is present #686

Open seanodell-zwift opened 1 year ago

seanodell-zwift commented 1 year ago

When .flake8 is present and contains any value for select under [flake8], the options under [pep8] are ignored.

The example below should break up the long comment, but it doesn't. If you comment out the select under [flake8] it gets broken up as expected.


Python Code

# this is a long comment

Command Line and Configuration

.flake8

[pep8]
max_line_length = 10

[flake8]
select = E112

Command Line

$ autopep8 

Your Environment