From 334f88a45ea9c21c571b6f066e12c15eb09aa863 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Tue, 7 Apr 2026 14:41:27 -0600 Subject: [PATCH] chore: add consistent mise.toml, justfile, and tooling config --- justfile | 15 +++++++++++++++ pyproject.toml | 3 +++ 2 files changed, 18 insertions(+) diff --git a/justfile b/justfile index e37cddd..f3d87a4 100644 --- a/justfile +++ b/justfile @@ -13,3 +13,18 @@ run *args: _ensure_tools # Run with verbose logging verbose *args: _ensure_tools @uv run -m donglora_mux --verbose {{args}} + +# Run all checks (fmt, lint) +check: fmt-check lint + +# Format code +fmt: _ensure_tools + @uv run ruff format . + +# Check formatting without changing files +fmt-check: _ensure_tools + @uv run ruff format --check . + +# Lint +lint: _ensure_tools + @uv run ruff check . diff --git a/pyproject.toml b/pyproject.toml index 8ff3dea..63bcece 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,9 @@ dependencies = [ [project.scripts] donglora-mux = "donglora_mux:main" +[dependency-groups] +dev = ["ruff"] + [build-system] requires = ["hatchling"] build-backend = "hatchling.build"