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

@ -9,6 +9,7 @@ dependencies = [
"awkward>=2.7.4",
"beartype>=0.20.0",
"cvxopt>=1.3.2",
"hypothesis>=6.131.9",
"jax[cuda12]>=0.5.1",
"jaxtyping>=0.2.38",
"jupytext>=1.17.0",
@ -18,6 +19,7 @@ dependencies = [
"pandas>=2.2.3",
"plotly>=6.0.1",
"pyarrow>=19.0.1",
"pytest>=8.3.5",
"scipy>=1.15.2",
"torch>=2.6.0",
"torchvision>=0.21.0",