This project provides pylint formatters for a nice integration with GitLab CI.
Low maintenance activity. Last release 12 months ago. Weaker on commit activity and recent releases.
pip install pylint-gitlabpylint-gitlab
This project provides pylint formatters for a nice integration with GitLab CI.
| Formatter | Description |
|---|---|
GitlabCodeClimateReporter | Maps the linting result in Code Climate format |
GitlabCodeClimateReporterNoHash | Maps the linting result in Code Climate format but without hashing the fingerprint. Needed to work with nbQA. |
GitlabPagesHtmlReporter | Creates a table in an HTML page with linting results and links to source code. |
Usage
Install package pylint-gitlab:
pip install pylint-gitlab
The pylint package is a dependency of pylint-gitlab so it will be installed automatically.
Now the formatters can be used by running pylint command and setting custom output formats with parameter --output-format.
pylint --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter . > codeclimate.json
pylint --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter . > pylint.html
Alternatively, you can load the pylint_gitlab plugin and then use the shortened --output-format names:
pylint --exit-zero --load-plugins=pylint_gitlab --output-format=gitlab-codeclimate . > codeclimate.json
pylint --exit-zero --load-plugins=pylint_gitlab --output-format=gitlab-pages-html . > pylint.html