- Install pyenv and poetry globally
- Install python3.12 python globally using pyenv
- Inside the app directory, run
poetry env use /path/to/python312 - Run
poetry install - Run
poetry shellto activate virtual environment - Run
autohooks activateto activate git hooks
- Run Aidbox anywhere but make
host.docker.internalavailable from the Aidbox to access the host machine - Run
cp .env.example .env docker-compose up
- Run
cp .env.tests.local.example .env.tests.local - Put your dev aidbox license key into
AIDBOX_LICENSE_TESTin.env.tests.local - Run
docker compose -f compose.test-env.yaml buildat the first time and every time once dependencies are updated/added - Run
./run_test.sh - You can kill the containers when complete to work with tests by run:
docker compose -f compose.test-env.yaml down
Strongly recommended to use ruff and mypy plugins for IDE