Pytest Typing Runner
This is a plugin for pytest to assist in generating scenarios to run static type checking against.
History
This plugin comes out of a fork of the pytest_mypy_plugins pytest plugin for writing tests that pytest can use to run mypy against sets of files.
The difference for this plugin is that it provides a pytest fixture to do work from rather than exposing a yml interface for writing tests. It also allows for running mypy multiple times in the same test with changes to the code being statically type checked. And also has some different mechanisms for expressing the expected output from mypy.
Features
Provides pytest fixtures to help create scenarios for testing a type checker
Each scenario is a set of files and a set of expectations around the behaviour of the type checker
Scenarios may comprise of multiple runs of the type checker to check the behaviour of the type checker when changes are made against a warm cache
Possible to run the same tests with different “strategies” where a strategy is a combination of specific type checker and default arguments
Currently only supports mypy by default but should be possible to easily add more type checkers.
Adds the ability to create files using a syntax for representing expectations in both the style used by mypy tests and a format introduced by this project that in some ways is a bit clearer and more expressive.
Built Docs
Metadata
Release files for pytest-typing-runner 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_typing_runner-0.6.2.tar.gz | 20.5 MB | With provenance | Details for pytest_typing_runner-0.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_typing_runner-0.6.2-py3-none-any.whl | Python 3 | none | any | Details for pytest_typing_runner-0.6.2-py3-none-any.whl |
Total release size: 20.6 MB
Release files / pytest_typing_runner-0.6.2.tar.gz
| Download URL | pytest_typing_runner-0.6.2.tar.gz |
|---|---|
| Size | 20.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49aee633c6766ef6643e37486f9252694ba5bdc521b230cb4ec875cf30a97dd2
|
|
BLAKE2b-256 checksum How to use checksums |
8734026d4c8490653fbf34d96c969fdc0f33c4883f0f09b4532398f31f2c5bc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 31, 2025.
Transparency logRelease files / pytest_typing_runner-0.6.2-py3-none-any.whl
| Download URL | pytest_typing_runner-0.6.2-py3-none-any.whl |
|---|---|
| Size | 54.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94c0039a5f1cdc7f5b8995a62c4746cf18a23b67350e4cb629be5fe95ab90b5b
|
|
BLAKE2b-256 checksum How to use checksums |
dc118a1cfb9c07b0ce6ef42d3c060defc4e2625fd947fb215963f97838721506
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 31, 2025.
Transparency logSecurity for pytest-typing-runner 0.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pytest_typing_runner-0.6.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 31, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.