This file contains important information for AI agents working in this codebase.
See ARCHITECTURE.md for detailed documentation on:
- Spatial relations processing pipeline
- Component overview (Parser, DataSource, Spatial Operations)
- Data models and type system
- Project structure
Changes are complete only when ALL of the following requirements are met:
- All pre-commit checks pass - Run code checks on modified files
- All tests pass - Run the full test suite or relevant test files
- Architecture documentation is updated - Update ARCHITECTURE.md if needed.
All pre-commit checks must pass before work is considered complete.
Run checks on modified files only:
pre-commit run --files <file1> <file2>...The project uses pytest for testing. Always run tests after making changes to ensure nothing breaks.
Run all tests:
python -m pytest -vRun specific test file:
python -m pytest tests/test_models.py -vRun specific test function:
python -m pytest tests/test_models.py::test_reference_location -vNotes:
- Use
python -m pytestinstead of justpytestto ensure the correct Python environment is used - Some tests may be skipped if environment variables (e.g.,
OPENAI_API_KEY) are not set