Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pep8 config is ignored #5

Open
dalberto opened this issue Oct 20, 2016 · 0 comments
Open

pep8 config is ignored #5

dalberto opened this issue Oct 20, 2016 · 0 comments

Comments

@dalberto
Copy link

When pyformat is used, an existing pep8 configuration is not applied.

Example:

# test.py
l = ['a', 'really', 'really', 'really', 'long', 'line', 'that', 'violates', 'max-line', 'limit']
# .pep8
[pep8]
max-line-length=120

Running autopep8 -i test.py results in:

# test.py after running autopep8
l = ['a', 'really', 'really', 'really', 'long', 'line', 'that', 'violates', 'max-line', 'limit']

As expected the file was not changed because it is under the 120 max-line-length in the autopep8 config.

Running pyformat -i test.py results in:

# test.py after running pyformat
l = ['a', 'really', 'really', 'really', 'long',
     'line', 'that', 'violates', 'max-line', 'limit']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants