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

Release files for pytest-beartype 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-beartype 0.2.0
File Size Uploaded
pytest_beartype-0.2.0.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-beartype 0.2.0
File Interpreter ABI Platform
pytest_beartype-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / pytest_beartype-0.2.0.tar.gz

Download URL pytest_beartype-0.2.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9eeec379f812e0e5c9c1bb7e95d90a33a79c387034f2d735e03bc9aa0fd7cf3f
BLAKE2b-256 checksum
How to use checksums
6369954ee438f1c72f4247b09381cd07a7d776ebdb4f6c0359b3b971676a2eef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / pytest_beartype-0.2.0-py3-none-any.whl

Download URL pytest_beartype-0.2.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be6be04be4a143f965f21140d6661bab43dcd7c761d50cf6daa1b16848e5d2d0
BLAKE2b-256 checksum
How to use checksums
816987efc2482aab172a32e4147eb5666ebc2e4c875e17d3104878553720a83a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page