{"id":13800703,"url":"https://github.com/orsinium-labs/mypy-baseline","last_synced_at":"2025-08-20T08:32:38.777Z","repository":{"id":60278798,"uuid":"531461440","full_name":"orsinium-labs/mypy-baseline","owner":"orsinium-labs","description":"Integrate mypy in seconds with existing codebase. A friendly CLI tool to make mypy report only new type violations and ignore existing ones.","archived":false,"fork":false,"pushed_at":"2024-04-13T15:27:07.000Z","size":479,"stargazers_count":46,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T04:25:19.109Z","etag":null,"topics":["baseline","cli","gradual-typing","legacy-code","mypy","python","python3","static-typing","typing"],"latest_commit_sha":null,"homepage":"https://mypy-baseline.orsinium.dev/","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orsinium-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-01T10:03:21.000Z","updated_at":"2024-04-28T11:38:21.851Z","dependencies_parsed_at":"2023-01-30T00:15:33.453Z","dependency_job_id":"7199ee9f-34c1-48bf-bf1c-46809f984644","html_url":"https://github.com/orsinium-labs/mypy-baseline","commit_stats":{"total_commits":81,"total_committers":2,"mean_commits":40.5,"dds":"0.012345679012345734","last_synced_commit":"6b55d66cd2a5ad60704d746f7c80c8daa90cff71"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fmypy-baseline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fmypy-baseline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fmypy-baseline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsinium-labs%2Fmypy-baseline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsinium-labs","download_url":"https://codeload.github.com/orsinium-labs/mypy-baseline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230054808,"owners_count":18165666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baseline","cli","gradual-typing","legacy-code","mypy","python","python3","static-typing","typing"],"created_at":"2024-08-04T00:01:15.268Z","updated_at":"2024-12-19T09:07:26.215Z","avatar_url":"https://github.com/orsinium-labs.png","language":"Python","funding_links":[],"categories":["Tools"],"sub_categories":["Working with types"],"readme":"# 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fmypy-baseline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsinium-labs%2Fmypy-baseline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsinium-labs%2Fmypy-baseline/lists"}