Skip to main content

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.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

pytest_beartype-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pytest_beartype-0.1.0.tar.gz.

File metadata

  • Download URL: pytest_beartype-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for pytest_beartype-0.1.0.tar.gz
Algorithm Hash digest
SHA256 38ac86f3a2694b648474249aa893352dc5423fe2d8483f30cc61d91702600a0e
MD5 e5745ed5fa283dc444f4d1ee5dd9e5ee
BLAKE2b-256 35de0c6016c40abd4d5ea58682f69e007bb1304a0ea892d8552dfc31b9d73623

See more details on using hashes here.

File details

Details for the file pytest_beartype-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_beartype-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6e693865669e0d71b4620f85c2dcdeea4231f8fe7f8f1c044cd4dbe198b96fc
MD5 9217cd84930efcc916178196ab9c1a65
BLAKE2b-256 6df44187395509ae5b8bf5adac252c53582b41d0ababdbb3de5cb426dda409d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page