Elpy and pylint: where should the pylintrc file be placed to configure pylint for Emacs?

I would like to remove 80 characters per line when pylint checks files in Emacs (I am using the Elpy package for Emacs). I am on Debian Wheezy and I am using backported Emacs24.

I checked the docs here regarding the hierarchy pylintrc

: http://docs.pylint.org/run.html#command-line-options and tried to place pylintrc

and a .pylintrc

file in my working directory with no luck. I also tried putting it .pylintrc

in my home directory, again with no effect.

I suppose the question might be asked, "What is my working directory when I call pylint from Emacs?" I don't have a good answer to this question ...

Where should the pylint config file be placed? Should it be .pylintrc

or pylintrc

?

+3


source to share


2 answers


create file:

~/.flake8rc

[flake8] ignore = E501
#max-line-length = 160

      



AFAIK emacs flymake uses flake8 by default (?)

+1


source


Try entering it:

~/.config/pylintrc 

      



If the ~ / .config directory does not exist, create it. If that doesn't work, try:

~/.pylintrc

      

0


source







All Articles