Open dalberto opened 7 years ago
When pyformat is used, an existing pep8 configuration is not applied.
pyformat
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:
autopep8 -i test.py
# 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.
max-line-length
Running pyformat -i test.py results in:
pyformat -i test.py
# test.py after running pyformat l = ['a', 'really', 'really', 'really', 'long', 'line', 'that', 'violates', 'max-line', 'limit']
When
pyformat
is used, an existing pep8 configuration is not applied.Example:
Running
autopep8 -i test.py
results in: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: