pylint_junit
Pylint plugin that generates JUnit based report that can be consumed by CI environments like Jenkins, Azure Devops and such.
Why ?
At the time of writing, few tools existed that where able to generate JUnit format from pylint output. Both of these projects where not handling “empty” results scenario well, eg both cases generated an empty file and that caused issues in ci as the resulting document was not proper xml file. Another issue was that issues found by pylint where marked under single testcase failure and this caused atleast Azure to report a single item per file even thought there could have been multiple.
Thus, pylint_junit was written.
Installation
Install the package with
pip install pylint_junit
or add it to your requirements.
Usage
After the plugin has been installed there are few options to take it into use.
Add following lines into your .pylintrc:
[MASTER]
load-plugins=pylint_junit
[REPORTS]
output-format=junit
This does set the default output to junit, so if still want to run pylint and get normal output, you might want to consider omitting the “output-format=junit” portion and only when junit format is needed, provide it via command line like this:
pylint --output-format=junit src/
Or, without making any changes to your pylint configuration, you can just pass the class as report formatter like this:
pylint --output-format=pylint_junit.JUnitReporter src/
Dependencies
Bugs / Feedback
Use Github Issues Tracker @ https://github.com/rasjani/pylint_junit/issues
Metadata
Release files for pylint-junit 0.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylint_junit-0.3.5.tar.gz | 4.6 kB | Without provenance | Details for pylint_junit-0.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylint_junit-0.3.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pylint_junit-0.3.5-py2.py3-none-any.whl |
Total release size: 8.4 kB
Release files / pylint_junit-0.3.5.tar.gz
| Download URL | pylint_junit-0.3.5.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7cbeebfaf392e79cbecc76b244589ffb81771bfeb15df5596fbe25700a96b5e
|
|
BLAKE2b-256 checksum How to use checksums |
554defeea9c27f91bab652cc3e10029ae86af41775d55088a23b40ff77754227
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / pylint_junit-0.3.5-py2.py3-none-any.whl
| Download URL | pylint_junit-0.3.5-py2.py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6f6554a357ba7b6c3329c3f350150585bd9031374eb78bcb7c407ce32399e036
|
|
BLAKE2b-256 checksum How to use checksums |
acafa295465974ae64327694f595692565a9fb3861ca9623b4b20a4f502b55e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Security for pylint-junit 0.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.