Search code examples
pythonpydevcode-formattingautopep8

Using AutoPep8 in pydev


I'm trying to use autopep8.py as the code formatter for pydev but I don't seem to be able to supply the parameters correctly as the output isn't as I would expect.

I need to be able to supply two parameters -a --max-line-length 100 but for some reason the formatter appears to be ignoring the line length option. Am I doing something wrong?

enter image description here

enter image description here


Solution

  • Well, I'm specifying the following settings and it works for me:

    -a -a --max-line-length=100 --ignore=E309
    

    So, I guess the problem in your case is missing the equals char after the --max-line-length.