{"id":26443657,"url":"https://github.com/dbader/pytest-mypy","last_synced_at":"2025-03-18T11:04:33.704Z","repository":{"id":37735956,"uuid":"69576530","full_name":"realpython/pytest-mypy","owner":"realpython","description":"Mypy static type checker plugin for Pytest","archived":false,"fork":false,"pushed_at":"2025-03-14T16:00:33.000Z","size":359,"stargazers_count":250,"open_issues_count":11,"forks_count":33,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-14T20:19:47.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pytest-mypy/","language":"Python","has_issues":true,"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/realpython.png","metadata":{"files":{"readme":"README.rst","changelog":"changelog.md","contributing":"CONTRIBUTING.rst","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":"2016-09-29T14:39:23.000Z","updated_at":"2025-03-14T16:00:39.000Z","dependencies_parsed_at":"2024-02-12T18:26:52.394Z","dependency_job_id":"208887a2-dbd5-45be-98dd-63e02bfbcc6a","html_url":"https://github.com/realpython/pytest-mypy","commit_stats":null,"previous_names":["dbader/pytest-mypy"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fpytest-mypy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fpytest-mypy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fpytest-mypy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fpytest-mypy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realpython","download_url":"https://codeload.github.com/realpython/pytest-mypy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244207736,"owners_count":20416107,"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":[],"created_at":"2025-03-18T11:01:17.339Z","updated_at":"2025-03-18T11:04:33.698Z","avatar_url":"https://github.com/realpython.png","language":"Python","readme":"pytest-mypy\n===================================\n\nMypy static type checker plugin for pytest\n\n.. image:: https://img.shields.io/pypi/v/pytest-mypy.svg\n   :target: https://pypi.org/project/pytest-mypy/\n   :alt: See Latest Release on PyPI\n\nFeatures\n--------\n\n* Runs the mypy static type checker on your source files as part of your pytest test runs.\n* Does for `mypy`_ what the `pytest-flake8`_ plugin does for `flake8`_.\n* This is a work in progress – pull requests appreciated.\n\n\nInstallation\n------------\n\nYou can install \"pytest-mypy\" via `pip`_ from `PyPI`_:\n\n.. code-block:: bash\n\n    $ pip install pytest-mypy\n\nUsage\n-----\n\nYou can enable pytest-mypy with the ``--mypy`` flag:\n\n.. code-block:: bash\n\n    $ py.test --mypy test_*.py\n\nMypy supports `reading configuration settings \u003chttp://mypy.readthedocs.io/en/latest/config_file.html\u003e`_ from a ``mypy.ini`` file.\nAlternatively, the plugin can be configured in a ``conftest.py`` to invoke mypy with extra options:\n\n.. code-block:: python\n\n    def pytest_configure(config):\n        plugin = config.pluginmanager.getplugin('mypy')\n        plugin.mypy_argv.append('--check-untyped-defs')\n\nYou can restrict your test run to only perform mypy checks and not any other tests by using the `-m` option:\n\n.. code-block:: bash\n\n    py.test --mypy -m mypy test_*.py\n\nLicense\n-------\n\nDistributed under the terms of the `MIT`_ license, \"pytest-mypy\" is free and open source software\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\nMeta\n----\n\nDaniel Bader – `@dbader_org`_ – https://dbader.org – mail@dbader.org\n\nhttps://github.com/realpython/pytest-mypy\n\n\n.. _`MIT`: http://opensource.org/licenses/MIT\n.. _`file an issue`: https://github.com/realpython/pytest-mypy/issues\n.. _`pip`: https://pypi.python.org/pypi/pip/\n.. _`PyPI`: https://pypi.python.org/pypi\n.. _`mypy`: http://mypy-lang.org/\n.. _`pytest-flake8`: https://pypi.python.org/pypi/pytest-flake8\n.. _`flake8`: https://pypi.python.org/pypi/flake8\n.. _`@dbader_org`: https://twitter.com/dbader_org\n","funding_links":[],"categories":["Python","Tools"],"sub_categories":["Testing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbader%2Fpytest-mypy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbader%2Fpytest-mypy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbader%2Fpytest-mypy/lists"}