mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-02 16:43:12 +00:00
3fc6a5ee01
chore(justfile): add commands to serve and build docs using MkDocs feat(mkdocs.yml): add initial MkDocs configuration with Material theme chore(pyproject.toml): add mkdocs-material as a dependency for docs group
50 lines
877 B
Makefile
50 lines
877 B
Makefile
# 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
|