Skip to main content

pylint reporter for junit format.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylint_junit-0.3.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file pylint_junit-0.3.0.tar.gz.

File metadata

  • Download URL: pylint_junit-0.3.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

File hashes

Hashes for pylint_junit-0.3.0.tar.gz
Algorithm Hash digest
SHA256 12bd84b964a04d8126eb675d38e4afec7ff29525eea338430402c581e4adc1eb
MD5 f5c963277e35f5c604d6ccedbd130cb8
BLAKE2b-256 12a179837d9d983d6d3a5615f77becf84ef3f08b3356a6fd6654d727e29be66b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page