Pylint
Language / Framework: Python
Categories: Style
Version: 2.4.4 (version 2.17.7 available via beta
channel)
Pylint is a source code, bug and quality checker for the Python programming language. It follows the style recommended by PEP 8, the Python style guide.
Enable the Plugin
To enable Pylint analysis, add the following to your .codeclimate.yml
configuration file:
plugins:
pylint:
enabled: true
More information about the CLI is available in the README here: https://github.com/codeclimate/codeclimate
Configure the Plugin
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.
Plugin activation can also be made in .codeclimate.yml
:
plugins:
pylint:
enabled: true
plugins:
- django
Currently the following plugins are supported:
Configuring pylint-django
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.
plugins:
pylint:
enabled: true
plugins:
- django
django_settings_module: mymodule.settings
Updated 9 months ago