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

Uploaded Source

Built Distribution

pytest_beartype-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_beartype-0.1.1.tar.gz
  • Upload date:
  • Size: 4.7 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.1.tar.gz
Algorithm Hash digest
SHA256 5b7d5344c2c23b930e56331c3cbb4b2b2a538dad7b5eea9ae6a40fe6d5faed47
MD5 216d975b012510f597ba4246be9e2ffe
BLAKE2b-256 24b97e51d25a12e9bb995619feaceec591d5fd2bb0f7680c817638777c63bc1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_beartype-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 342a25fedeb019e38dc6cc738e0cae2ceaf53c24ef16c2b6aa99e59be50c8a32
MD5 43b3d51104654fd5b7f5f7c86238ad2a
BLAKE2b-256 ee1ec0541fb858bf692690113fc7b2c1c14005ce25d3d47617d2635335e76aa0

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