Epylint in emacs using virtualenv

Can't get epylint to work. I am using buildout to generate an epylint script. But then I run it from the command line, it doesn't output anything.

> epylint models.py
> echo $?
0

      

So far, if pylint is installed on the system (emerge pylint) everything works, except that the system level linter does not see the eggs set by buildout. Here is my build part for eplint:

[epylint]
recipe = zc.recipe.egg
eggs =
    ${buildout:eggs}
    pylint
extra-paths = ${buildout:extra-paths}
entry-points = epylint=pylint.epylint:Run

      

Would love to receive suggestions on how I might point out the problem.

+3


source to share


1 answer


It seems to be due to the lack of a pylint script that epylint is calling internally.

This buildout config works for me:



[epylint]
recipe = zc.recipe.egg
eggs = pylint
entry-points = epylint=pylint.epylint:Run

[pylint]
recipe = zc.recipe.egg
eggs = pylint
entry-points = pylint=pylint.lint:Run
arguments = sys.argv[1:]

      

I needed two parts because pylint.lint: Run and pylint.epylint: Run the process command line arguments in different ways.

+2


source







All Articles