2024-06-16 19:03:39 +00:00
|
|
|
# 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
|
2024-07-02 20:56:44 +00:00
|
|
|
|
2024-06-16 19:03:39 +00:00
|
|
|
# Lint the code using ruff
|
|
|
|
lint:
|
|
|
|
poetry run ruff check .
|
|
|
|
|
|
|
|
# Fix linting issues
|
|
|
|
lint-fix:
|
|
|
|
poetry run ruff --fix .
|
|
|
|
|
2024-07-13 19:21:16 +00:00
|
|
|
# Type-check the code using pyright
|
|
|
|
check-types:
|
|
|
|
poetry run pyright
|
|
|
|
|
2024-06-16 19:03:39 +00:00
|
|
|
# Environment setup
|
|
|
|
setup-env:
|
|
|
|
@echo "Setting up environment..."
|
|
|
|
just install-poetry
|
|
|
|
just install
|
|
|
|
just lint-fix
|
|
|
|
just generate-prisma
|
|
|
|
|
|
|
|
start-docker:
|
2024-07-02 20:56:44 +00:00
|
|
|
docker compose up --build -d
|
2024-06-16 19:03:39 +00:00
|
|
|
|
|
|
|
stop-docker:
|
|
|
|
docker compose down
|
2024-07-31 01:38:07 +00:00
|
|
|
|
|
|
|
serve-docs:
|
|
|
|
mkdocs serve
|
|
|
|
|
|
|
|
build-docs:
|
|
|
|
mkdocs build
|