Search code examples
eclipsepydevpylint

Getting Eclipse to recognise a Pylint "pylint.rc" file


I'm trying to get Eclipse to recognise the PyLint configuration file that I use in Jenkins. At the moment Eclipse pylint swamps me with useless errors. I've tried passing in the rcfile parameter. So...

Windows > preferences > PyDev > PyLint

Then in "arguments to pass to pylint" I have --rcfile=absolute_path_to_pylint.rc

This has no effect.

I've read that pylint will work if you drop a config file in your home directory, or set an Environmental variable (See: Permanent Config File in Pylint) but both these solutions are a little unwieldy.

Any ideas?


Solution

  • Your setup should work IMO. Double check that you don't have a typo in the path and that there is no syntax error in the rcfile preventing pylint from loading it (this could be related to a different pylint version being used in pydev and jenkins for instance).

    If this still does not work, I think you should take the discussion to the pydev mailing list.