[!WARNING] We have decided to archive this repository because we don't have the necessary means to maintain it any longer. If you liked it, you can fork it.
codeclimate-pylint
is a Code Climate engine that wraps the Pylint source code analyzer. You can run it on your command line using the Code Climate CLI, or on our hosted analysis platform.
engines:
pylint:
enabled: true
codeclimate analyze
.You can configure which files to be analyzed in your .codeclimate.yml
file.
Other configurations can be made through a .pylintrc
file. More information can be found on Pylint's documentation
PYTHONPATH can be modified by setting the PYTHONPATH configuration variable:
engines:
pylint:
enabled: true
PYTHONPATH:
- src
This adds the src
directory to PYTHONPATH before running pylint
. Relative paths are properly resolved to the current directory.
Plugin activation can also be made in .codeclimate.yml
:
engines:
pylint:
enabled: true
plugins:
- django
Currently the following plugins are supported:
According to the latest pylint-django docs it's required to set Django settings module according to the project. If you have your settings module at root level you should do nothing, but if that's not the case then you need to declare your settings module in .codeclimate.yml
as shown below.
engines:
pylint:
enabled: true
plugins:
- django
django_settings_module: mymodule.settings
We welcome PRs adding support for other plugins.
For help with Pylint, check out their documentation.
If you're running into a Code Climate issue, first check out this project's GitHub Issues, as your question may have already been covered. If not, go ahead and open a support ticket with us.