Metadata-Version: 2.1
Name: pytest-mypy-runner
Version: 1.0.0
Summary: Run the mypy static type checker as a pytest test case
License: MIT
Author: BrandonLWhite
Author-email: brandonlwhite@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: mypy (>=1.8)
Requires-Dist: pytest (>=8.0)
Description-Content-Type: text/markdown

# pytest-mypy-runner
Run the [mypy](https://github.com/python/mypy) static type checker as a [pytest](https://github.com/pytest-dev/pytest) test case

## Usage
After adding this library to your dev/test dependencies and installing, add the following file to your test folder:

`test_mypy.py`
```test_mypy.py
from pytest_mypy_runner import test_mypy  # noqa
```

Pytest should then pick up the `test_mypy` test.

Note:  The `# noqa` is there to prevent formatters/linters like autoflake from removing what otherwise appears to be an
unused import.

## Configuration
The nearest `pyproject.toml` file will be used to configured mypy, traversing upward from the folder where test_mypy.py
resides.  Add any custom configuration to the `[tool.mypy]` section.
