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

1
.gitignore vendored
View File

@ -8,4 +8,5 @@ wheels/
# Virtual environments
.venv
.hypothesis
samples