- 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 shell
to activate virtual environment - Run
autohooks activate
to activate git hooks
- Run Aidbox anywhere but make
host.docker.internal
available 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_TEST
in.env.tests.local
- Run
docker compose -f compose.test-env.yaml build
at 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