Check the type annotations at runtime with typeguard

This commit is contained in:
Alexander Hess 2026-12-01 17:07:00 +01:00
commit 5f7d3108de
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -1 +1,11 @@
"""Test the velofy package."""
import os
# Check the type annotations of `velofy` at runtime in the `nox` session "test-types"
# => Must happen before tests/conftest.py imports `velofy`
if os.environ.get("TYPEGUARD"):
import typeguard
typeguard.install_import_hook("velofy")