-
Notifications
You must be signed in to change notification settings - Fork 24
/
justfile
50 lines (38 loc) · 877 Bytes
/
justfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Install Poetry
install-poetry:
curl -sSL https://install.python-poetry.org | python3 -
# Install dependencies
install:
poetry install && poetry run pre-commit install && poetry run prisma generate
# Prisma-related commands
generate-prisma:
poetry run prisma generate
migrate-prisma:
poetry run prisma migrate dev
# Run the bot
run:
poetry run python tux/main.py
# Lint the code using ruff
lint:
poetry run ruff check .
# Fix linting issues
lint-fix:
poetry run ruff --fix .
# Type-check the code using pyright
check-types:
poetry run pyright
# Environment setup
setup-env:
@echo "Setting up environment..."
just install-poetry
just install
just lint-fix
just generate-prisma
start-docker:
docker compose up --build -d
stop-docker:
docker compose down
serve-docs:
mkdocs serve
build-docs:
mkdocs build