1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 16:43:12 +00:00
tux/justfile
kzndotsh ed9c000f81 feat: add justfile for task automation
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
2024-06-16 19:03:39 +00:00

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