mirror of
https://github.com/allthingslinux/tux.git
synced 2024-10-03 00:53:12 +00:00
ed9c000f81
refactor(constants.py): simplify LOG_CHANNELS loading logic for better readability and performance fix(constants.py): correct the condition check for DEV environment variable to ensure correct behavior in development mode
41 lines
787 B
Makefile
41 lines
787 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 .
|
|
|
|
# Environment setup
|
|
setup-env:
|
|
@echo "Setting up environment..."
|
|
just install-poetry
|
|
just install
|
|
just lint-fix
|
|
just generate-prisma
|
|
# just prisma-migrate
|
|
|
|
start-docker:
|
|
docker compose up --build --detatch
|
|
|
|
stop-docker:
|
|
docker compose down
|