For Pylint, is it possible to have a different pylintrc file for each Eclipse project?

bandit picture bandit · Apr 28, 2013 · Viewed 8.7k times · Source

I saw I can change it per Eclipse instance using this solution. I would like to set it per project. Is it possible?

Answer

sthenault picture sthenault · Apr 29, 2013

This is not Eclipse specific, but it may help anyway. According to pylint command line options:

You can specify a configuration file on the command line using the --rcfile option. Otherwise, Pylint searches for a configuration file in the following order and uses the first one it finds:

  1. pylintrc in the current working directory
  2. .pylintrc in the current working directory
  3. If the current working directory is in a Python module, Pylint searches up the hierarchy of Python modules until it finds a pylintrc file. This allows you to specify coding standards on a module-by-module basis. Of course, a directory is judged to be a Python module if it contains an __init__.py file.
  4. The file named by environment variable PYLINTRC
  5. If you have a home directory which isn’t /root:
    1. .pylintrc in your home directory
    2. .config/pylintrc in your home directory
  6. /etc/pylintrc

Points 1 or 3 above may help.