For Pylint, is it possible to have a different pylintrc file for each Eclipse project?
pylint, pylintrc, python
Solution
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:
- `pylintrc` in the current working directory
- `.pylintrc` in the current working directory
- 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.
- The file named by environment variable `PYLINTRC`
- If you have a home directory which isn’t `/root`:
- `.pylintrc` in your home directory
- `.config/pylintrc` in your home directory
- `/etc/pylintrc`
Points 1 or 3 above may help.
Problem
I saw I can change it per Eclipse instance using this solution. I would like to set it per project. Is it possible?