pytest-beartype
Pytest plugin to run your tests with beartype checking enabled.
Installation
pip install pytest_beartype
Usage
pytest --beartype-packages='your_package_name,other_package_name'
This will ensure that any type annotations in those packages are checked at runtime, while your tests are running.
Local Development / Testing
- Create and activate a virtual environment
- Run
pip install -r requirements-dev.txtto do an editable install - Run
pytestto run tests
Type Checking
Run mypy .
Create and upload a package to PyPI
Make sure to bump the version in setup.cfg.
Then run the following commands:
rm -rf build dist
python setup.py sdist bdist_wheel
Then upload it to PyPI using twine:
twine upload dist/*
Release files for pytest-beartype 0.2.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_beartype-0.2.0.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_beartype-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / pytest_beartype-0.2.0.tar.gz
| Download URL | pytest_beartype-0.2.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9eeec379f812e0e5c9c1bb7e95d90a33a79c387034f2d735e03bc9aa0fd7cf3f
|
|
BLAKE2b-256 checksum How to use checksums |
6369954ee438f1c72f4247b09381cd07a7d776ebdb4f6c0359b3b971676a2eef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / pytest_beartype-0.2.0-py3-none-any.whl
| Download URL | pytest_beartype-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be6be04be4a143f965f21140d6661bab43dcd7c761d50cf6daa1b16848e5d2d0
|
|
BLAKE2b-256 checksum How to use checksums |
816987efc2482aab172a32e4147eb5666ebc2e4c875e17d3104878553720a83a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|