1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 08:39:09 +00:00
tux/justfile
kzndotsh 3fc6a5ee01 feat(docs): add MkDocs documentation with initial pages
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
2024-07-31 01:38:07 +00:00

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