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.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/*
Project details
Release history Release notifications | RSS feed
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.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for pytest_beartype-0.1.0-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e6e693865669e0d71b4620f85c2dcdeea4231f8fe7f8f1c044cd4dbe198b96fc |
|
| MD5 | 9217cd84930efcc916178196ab9c1a65 |
|
| BLAKE2b-256 | 6df44187395509ae5b8bf5adac252c53582b41d0ababdbb3de5cb426dda409d3 |