This package supports Python 3.11 and above. We recommend using a virtual environment to install this package, e.g.,
conda create -n haicosystem-demo python=3.11; conda activate haicosystem-demo; curl -sSL https://install.python-poetry.org | python3
poetry install
xxx
mypy --install-types --non-interactive haicosystem-demo
pip install pre-commit
pre-commit install
git checkout -b feature/feature-name
and PR to main
branch.
Run pytest
to make sure all tests pass (this will ensure dynamic typing passed with beartype) and mypy --strict --exclude haicosystem/tools --exclude haicosystem/grounding_engine/llm_engine_legacy.py .
to check static typing.
(You can also run pre-commit run --all-files
to run all checks)
Check the github action result to make sure all tests pass. If not, fix the errors and push again.