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.0.1.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file pytest-beartype-0.0.1.tar.gz
.
File metadata
- Download URL: pytest-beartype-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af8a751dfe6e6395ffd5d9a1e610a7e11f879bfe043e5f8bd726dc5340b1d3a9 |
|
MD5 | eef88a6aaad1e65ab92858c5827476bb |
|
BLAKE2b-256 | 140d62bde926f4c9d9b75167525a9067831829da13467e314a96d43f4a2b52b0 |
File details
Details for the file pytest_beartype-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pytest_beartype-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04045445ea1ed334d60ec4eb569a5128085a41a58d5c29a18b78d0c2637b4ba2 |
|
MD5 | 2f080c82e362ee89c981ad16ff7eb07f |
|
BLAKE2b-256 | d13475cfdebb8e7b66492a6dfb90036a1ec620a4bb35a1d475f3169688c6ab9c |