pytest-mypy-runner
Run the mypy static type checker as a 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
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.
Metadata
Release files for pytest-mypy-runner 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_mypy_runner-1.0.0.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_mypy_runner-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / pytest_mypy_runner-1.0.0.tar.gz
| Download URL | pytest_mypy_runner-1.0.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ebad924f92c0f6e3bbf6f840da13377d23118406179c84722293fdc996fc6f0
|
|
BLAKE2b-256 checksum How to use checksums |
8dfcda34c58d029d35b713676a0791cec40ad2e7e237e213ac6b32f9bdf4f792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / pytest_mypy_runner-1.0.0-py3-none-any.whl
| Download URL | pytest_mypy_runner-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90cbdf07f12bce394a3d672e50cb851d1a109caccf5169ad65a737693b642b34
|
|
BLAKE2b-256 checksum How to use checksums |
c40b88995957f6390d85b84fa76e181d9d31972403dcd68cf7c15c6617c4dfc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|