Pytest plugin to run your tests with beartype checking enabled.
Project description
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.txt
to do an editable install - Run
pytest
to 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/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest_beartype-0.2.0.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file pytest_beartype-0.2.0.tar.gz
.
File metadata
- Download URL: pytest_beartype-0.2.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eeec379f812e0e5c9c1bb7e95d90a33a79c387034f2d735e03bc9aa0fd7cf3f |
|
MD5 | 813b4c02f8882e1ace256745e4ca6387 |
|
BLAKE2b-256 | 6369954ee438f1c72f4247b09381cd07a7d776ebdb4f6c0359b3b971676a2eef |
File details
Details for the file pytest_beartype-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_beartype-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6be04be4a143f965f21140d6661bab43dcd7c761d50cf6daa1b16848e5d2d0 |
|
MD5 | ebae7435d0e90d9eacc38ef318b25a2b |
|
BLAKE2b-256 | 816987efc2482aab172a32e4147eb5666ebc2e4c875e17d3104878553720a83a |