feat: Add hypothesis testing and update dependencies

- Added property-based tests for camera affinity calculations using Hypothesis, enhancing test coverage and reliability.
- Updated `.gitignore` to include `.hypothesis` directory.
- Added `hypothesis` and `pytest` as dependencies in `pyproject.toml` and `uv.lock` for improved testing capabilities.
- Refactored imports in `playground.py` to include `Sequence` and `Mapping` from `beartype.typing`.
- Introduced a new test file `tests/test_affinity.py` for structured testing of affinity calculations.
This commit is contained in:
2025-04-28 18:21:08 +08:00
parent b3ed20296a
commit 487dd4e237
5 changed files with 185 additions and 2 deletions

View File

@ -24,9 +24,7 @@ from pathlib import Path
from typing import (
Any,
Generator,
Mapping,
Optional,
Sequence,
TypeAlias,
TypedDict,
TypeVar,
@ -40,6 +38,7 @@ import jax.numpy as jnp
import numpy as np
import orjson
from beartype import beartype
from beartype.typing import Sequence, Mapping
from cv2 import undistortPoints
from IPython.display import display
from jaxtyping import Array, Float, Num, jaxtyped