PyPI-ready metadata (donglora-mux), full classifiers, URLs. Fixed dependency path to client-py. Added 11 interception tests ported from the Rust mux (SetConfig locking, StartRx/StopRx refcounting). GitHub Actions CI. Strict ruff linting. Applied contextlib.suppress per SIM105, collapsed nested ifs per SIM102. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
647 B
Makefile
35 lines
647 B
Makefile
set shell := ["bash", "-c"]
|
|
|
|
default: run
|
|
|
|
[private]
|
|
_ensure_tools:
|
|
@mise trust --yes . 2>/dev/null; mise install --quiet
|
|
|
|
# Run the mux daemon
|
|
run *args: _ensure_tools
|
|
@uv run -m donglora_mux {{args}}
|
|
|
|
# Run with verbose logging
|
|
verbose *args: _ensure_tools
|
|
@uv run -m donglora_mux --verbose {{args}}
|
|
|
|
# Run all checks (fmt, lint, test)
|
|
check: fmt-check lint test
|
|
|
|
# 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 .
|
|
|
|
# Run tests
|
|
test: _ensure_tools
|
|
@uv run pytest -v
|