{"library":"mypy-baseline","title":"mypy-baseline","description":"mypy-baseline is a friendly CLI tool designed to integrate the `mypy` static type checker into existing Python projects. It works by creating and managing a 'baseline' file of current type errors, allowing developers to focus on new errors introduced while gradually addressing the existing technical debt. Currently at version 0.7.3, it maintains an active development and release cadence.","language":"python","status":"active","last_verified":"Sat Apr 11","install":{"commands":["pip install mypy-baseline"],"cli":{"name":"mypy-baseline","version":"usage: mypy-baseline [-h]"}},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# 1. Ensure mypy is configured to show error codes (e.g., in pyproject.toml):\n# [tool.mypy]\n# show_error_codes = true\n\n# 2. Generate the initial baseline (mypy-baseline.txt by default)\n#    This will capture all current mypy errors.\nmypy | mypy-baseline sync\n\n# 3. Filter mypy output, reporting only new errors not in the baseline\nmypy | mypy-baseline filter\n\n# If you resolve existing errors or introduce new ones, run 'mypy | mypy-baseline sync'\n# again to update the baseline.","lang":"bash","description":"To get started, first ensure your mypy configuration (typically in `pyproject.toml`) includes `show_error_codes = true`. Then, generate an initial baseline to record all existing type errors. Subsequent runs can then filter mypy's output to only show new errors, helping to incrementally improve type coverage.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}