mypy_baseline


Namemypy_baseline JSON
Version 0.7.1 PyPI version JSON
download
home_pageNone
SummaryIntegrate mypy with existing codebase.
upload_time2024-05-09 07:14:55
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords mypy typing annotations type annotations
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # mypy-baseline

A CLI tool for painless integration of mypy with an existing Python project. When you run it for the first time, it will remember all type errors that you already have in the project (generate "baseline"). All consecutive runs will ignore these errors and report only ones that you introduced after that.

Additionally, the tool will show you what progress you made since the last baseline, to encourage your team to resolve mypy errors:

![example of the command output](./assets/example.png)

Features:

+ Battle-tested.
+ Fast and simple.
+ Pure Python.
+ No mypy patching or dirty magic. The tool works exclusively with the stdout of mypy.
+ Nice stats with colors.
+ Can detect exactly what errors were introduced and what errors were resolved, even if they are in the same file.
+ Baseline is carefully crafted to avoid merge conflicts.
+ Baseline is human-readable, and diffs are informative. The reviewers of your PR will know exactly what errors you resolve and what errors you introduced.
+ Track the progress you make with git-based history of changes and burndown chart of resolved type violations.
+ Ignore specific error messages (using regular expressions) and error categories, so that buggy mypy plugins don't bother you with false-positives.

## Installation

```bash
python3 -m pip install mypy-baseline
```

## Usage

Create the baseline (it will be stored in `mypy-baseline.txt` by default):

```bash
mypy | mypy-baseline sync
```

After that, you can pipe mypy output into `mypy-baseline filter`, and it will filter out all issues that are already in the baseline:

```bash
mypy | mypy-baseline filter
```

If you introduce new errors, resolve them. If you resolve existing errors, run `mypy-baseline sync` again to re-generate baseline. In both cases, mypy-baseline will tell you what's wrong and what to do. Enjoy the ride!

Read more in the documentation: [mypy-baseline.orsinium.dev](https://mypy-baseline.orsinium.dev/)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mypy_baseline",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "mypy, typing, annotations, type annotations",
    "author": null,
    "author_email": "Gram <git@orsinium.dev>",
    "download_url": "https://files.pythonhosted.org/packages/41/64/7aae0147728cbcceb3670e6f65970ad844a4f5d18717222c06a31d94f82b/mypy_baseline-0.7.1.tar.gz",
    "platform": null,
    "description": "# mypy-baseline\n\nA CLI tool for painless integration of mypy with an existing Python project. When you run it for the first time, it will remember all type errors that you already have in the project (generate \"baseline\"). All consecutive runs will ignore these errors and report only ones that you introduced after that.\n\nAdditionally, the tool will show you what progress you made since the last baseline, to encourage your team to resolve mypy errors:\n\n![example of the command output](./assets/example.png)\n\nFeatures:\n\n+ Battle-tested.\n+ Fast and simple.\n+ Pure Python.\n+ No mypy patching or dirty magic. The tool works exclusively with the stdout of mypy.\n+ Nice stats with colors.\n+ Can detect exactly what errors were introduced and what errors were resolved, even if they are in the same file.\n+ Baseline is carefully crafted to avoid merge conflicts.\n+ Baseline is human-readable, and diffs are informative. The reviewers of your PR will know exactly what errors you resolve and what errors you introduced.\n+ Track the progress you make with git-based history of changes and burndown chart of resolved type violations.\n+ Ignore specific error messages (using regular expressions) and error categories, so that buggy mypy plugins don't bother you with false-positives.\n\n## Installation\n\n```bash\npython3 -m pip install mypy-baseline\n```\n\n## Usage\n\nCreate the baseline (it will be stored in `mypy-baseline.txt` by default):\n\n```bash\nmypy | mypy-baseline sync\n```\n\nAfter that, you can pipe mypy output into `mypy-baseline filter`, and it will filter out all issues that are already in the baseline:\n\n```bash\nmypy | mypy-baseline filter\n```\n\nIf you introduce new errors, resolve them. If you resolve existing errors, run `mypy-baseline sync` again to re-generate baseline. In both cases, mypy-baseline will tell you what's wrong and what to do. Enjoy the ride!\n\nRead more in the documentation: [mypy-baseline.orsinium.dev](https://mypy-baseline.orsinium.dev/)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Integrate mypy with existing codebase.",
    "version": "0.7.1",
    "project_urls": {
        "Source": "https://github.com/orsinium-labs/mypy-baseline"
    },
    "split_keywords": [
        "mypy",
        " typing",
        " annotations",
        " type annotations"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "30ed1ec5a79225d83e782f8a5180161239ddb2404ba8c28974d477181bfa8545",
                "md5": "2ccf244ae2d9a098aaffcd1fbc81ba13",
                "sha256": "08c0781451c67a8e36986da71418bd7131b66861c941c5b23fed7e7d6817ca80"
            },
            "downloads": -1,
            "filename": "mypy_baseline-0.7.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2ccf244ae2d9a098aaffcd1fbc81ba13",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 17640,
            "upload_time": "2024-05-09T07:14:53",
            "upload_time_iso_8601": "2024-05-09T07:14:53.035335Z",
            "url": "https://files.pythonhosted.org/packages/30/ed/1ec5a79225d83e782f8a5180161239ddb2404ba8c28974d477181bfa8545/mypy_baseline-0.7.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "41647aae0147728cbcceb3670e6f65970ad844a4f5d18717222c06a31d94f82b",
                "md5": "38eaa79ded5fdb104fbffd672a74dc3a",
                "sha256": "b018e5238f650717b82ae774596e240ff957f32b34f068f22695f56e4a337a15"
            },
            "downloads": -1,
            "filename": "mypy_baseline-0.7.1.tar.gz",
            "has_sig": false,
            "md5_digest": "38eaa79ded5fdb104fbffd672a74dc3a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 319592,
            "upload_time": "2024-05-09T07:14:55",
            "upload_time_iso_8601": "2024-05-09T07:14:55.158359Z",
            "url": "https://files.pythonhosted.org/packages/41/64/7aae0147728cbcceb3670e6f65970ad844a4f5d18717222c06a31d94f82b/mypy_baseline-0.7.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-09 07:14:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "orsinium-labs",
    "github_project": "mypy-baseline",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mypy_baseline"
}
        
Elapsed time: 0.28030s