I am using elpy for my Python development, but I would like to set the per-line character limit to 120 instead of the default 80 used by PEP8. Any suggestions on how I can do this? Even better, it would be great if I can customize this setting on a per-project basis.
I have tried the following:
M-x customize-group elpy
M-x customize-mode elpy-mode
M-x customize-mode python-mode
but I can't seem to find the option that customizes the line character limit.
M-x set-fill-column
and viaM-x customize-variable fill-column
), but elpy still shows an error for lines longer than 79 characters, with the messageE501 line too long (81 > 79 characters)
. I tried refreshing the buffer too, but no luck. Any suggestions? – modulitos Jun 13 '16 at 3:41flake8
config file or through theautopep8
config file depending on what you want. Take a look at the configuration page flake8.readthedocs.io/en/latest/config.html – Jules Jun 13 '16 at 14:36