Skip to main content

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/*

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_beartype-0.2.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for pytest_beartype-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9eeec379f812e0e5c9c1bb7e95d90a33a79c387034f2d735e03bc9aa0fd7cf3f
MD5 813b4c02f8882e1ace256745e4ca6387
BLAKE2b-256 6369954ee438f1c72f4247b09381cd07a7d776ebdb4f6c0359b3b971676a2eef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_beartype-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be6be04be4a143f965f21140d6661bab43dcd7c761d50cf6daa1b16848e5d2d0
MD5 ebae7435d0e90d9eacc38ef318b25a2b
BLAKE2b-256 816987efc2482aab172a32e4147eb5666ebc2e4c875e17d3104878553720a83a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.1

2 files

0.1.0

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page