Skip to main content

comparerr

Comparerr uses pylint to analyze 2 versions of python software versioned with git and lists you messages which did not occur in old version and messages which are no longer emitted. It is an alternative to pylints disabling of some messages because they are not useful or they are false positives.

Example

We have 2 branches. Master is the most recent stable development and pull request is my new changes which add new feature to my software.

  • master
  • pullrequest

I want to know if i did not add some new warning to those which were already occurring. So i will run:

$ comparerr "./.git" "master" "pullrequest" --error-only --targets src/ tests/ \*.py

Let me explain what happens here.

  1. "./.git" first argument is a location of the git repository
  2. "master" first git reference for comparison
  3. "pullrequest" second git reference for comparison
  4. --error-only options which forces pylint and comparerr to work only with errors in code and not search for example coding style issues.
  5. --targets src/ tests/ \*.py these are folders and files which we want to analyze with pylint. Please note escaped asterisk symbol. You can use regex but you must escape it, because your shell could and most probably will resolve them in context of your current working directory

Now lets see the output.

Fixed errors:
Message: Instance of 'JunkClass' has no '_non_existent' member
File: /junk.py
Line: 4
Context:

class JunkClass:
    def __init__(self):
        self._non_existent += 1


Added errors:
Message: Undefined variable 'variabble'
File: /junk.py
Line: 9
Context:
    def great_method(self, keyword=None):
        variable = 1
        print(variabble)

First block Fixed errors: shows us what messages have not been present in analysis of new version.

Second block Added errors: shows us what messages have been added in analysis of new version.

Metadata

Release files for comparerr 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for comparerr 0.2.0
File Size Uploaded Provenance Actions
comparerr-0.2.0.tar.gz 4.9 kB Without provenance Details for comparerr-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for comparerr 0.2.0
File Interpreter ABI Platform Actions
comparerr-0.2.0-py3-none-any.whl Python 3 none any Details for comparerr-0.2.0-py3-none-any.whl

Total release size: 25.0 kB

Release files / comparerr-0.2.0.tar.gz

Download URL comparerr-0.2.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ddd491f5dfd5a45639b878b409042c382fe0567a68b40dffb83b5abb8e4f7c03
BLAKE2b-256 checksum
How to use checksums
cf225905a75027fc632437c1d2ca5fcd1101c8f6bce2fe489c5c531f64497e6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release files / comparerr-0.2.0-py3-none-any.whl

Download URL comparerr-0.2.0-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b17e9a4c0ba0a6372aabed9b1ab4210f3cda15a0994895d7e33f6d4942fbd3dd
BLAKE2b-256 checksum
How to use checksums
30b0209afb35eb34ab189c75fdea286af74e5527e40bd4742d2f8149ef995b7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Security for comparerr 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page