Check the type annotations at runtime with typeguard
This commit is contained in:
parent
893b6bd8f1
commit
5f7d3108de
1 changed files with 63 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue