forked from cohere-ai/cohere-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (31 loc) · 862 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dev:
@docker compose watch
down:
@docker compose down
run-tests:
docker compose run --build backend poetry run pytest src/backend/tests/$(file)
run-community-tests:
docker compose run --build backend poetry run pytest src/community/tests/$(file)
attach:
@docker attach cohere-toolkit-backend-1
exec-backend:
docker exec -ti cohere-toolkit-backend-1 bash
exec-db:
docker exec -ti cohere-toolkit-db-1 bash
migration:
docker compose run --build backend alembic -c src/backend/alembic.ini revision --autogenerate
migrate:
docker compose run --build backend alembic -c src/backend/alembic.ini upgrade head
reset-db:
docker compose down
docker volume rm cohere_toolkit_db
setup:
poetry install --only setup --verbose
poetry run python3 src/backend/cli/main.py
lint:
poetry run black .
poetry run isort .
first-run:
make setup
make migrate
make dev