chore: add consistent mise.toml, justfile, and tooling config
This commit is contained in:
2 files changed
+18
No files matched your search
@@ -9,6 +9,21 @@ _uv_orac := "uv run --project " + _proj + " --extra orac"
|
||||
_ensure_tools:
|
||||
@mise trust --yes . 2>/dev/null; mise install --quiet
|
||||
|
||||
# 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 .
|
||||
|
||||
# Receive LoRa packets (Ctrl-C to stop)
|
||||
rx *args: _ensure_tools
|
||||
@{{_uv}} {{source_directory()}}/simple_rx.py {{args}}
|
||||
|
||||
@@ -12,6 +12,9 @@ dependencies = [
|
||||
meshcore = ["donglora[meshcore]"]
|
||||
orac = ["donglora[orac]"]
|
||||
|
||||
[dependency-groups]
|
||||
dev = ["ruff"]
|
||||
|
||||
[tool.uv]
|
||||
package = false
|
||||
|
||||
|
||||
Reference in new issue
Block a user