{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"Integrates mypy static type checking into pytest, running type checks on your source files as part of your test suite.","skillfed_tags":["type-checking","pytest-plugin","ci-integration"],"use_cases":["Run type checks automatically as part of your CI/CD pipeline without a separate mypy invocation step.","Enforce type checking discipline in test suites by failing the build when type errors are detected.","Configure mypy options per-project in conftest.py to apply custom type-checking rules during test runs.","Restrict test execution to only type checks using pytest markers when you want to validate types without running functional tests."],"what_it_does":"pytest-mypy is a pytest plugin that runs mypy's static type checker on your source files as part of your normal pytest test runs. Instead of running type checks separately, you invoke mypy checks through pytest using the --mypy flag, making type validation part of your continuous test workflow.\n\nThe plugin works by integrating mypy into pytest's test discovery and execution, similar to how pytest-flake8 integrates flake8. You can configure mypy behavior through a mypy.ini file or programmatically in conftest.py, and you can filter test runs to only perform type checks using pytest's -m option. It depends on pytest, mypy, and filelock, all of which are common tools in Python development environments.","worth_installing":"Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and solves a real workflow problem\u2014integrating type checking into your existing pytest test runs. It's well-suited for teams that want type validation as a first-class part of their test suite rather than a separate tool invocation."},"id":"pytest-mypy","links":{"html":"https://skillfed.io/packages/pytest-mypy","md":"https://skillfed.io/packages/pytest-mypy.md","pypi":"https://pypi.org/project/pytest-mypy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-04-02","license_spdx":null,"license_treatment":"permissive","name":"pytest-mypy","python_support":"supports_current","summary":"A Pytest Plugin for Mypy"},"popularity":{"monthly_downloads":557278,"position":6011,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.1"}
