-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
34 lines (26 loc) · 837 Bytes
/
Copy pathjustfile
File metadata and controls
34 lines (26 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
script := "write_logitech_g600_profiles.py"
# List available recipes
default:
@just --list
# Format the code with ruff
format:
uv run ruff format {{script}}
# Check formatting without modifying files
format-check:
uv run ruff format --check {{script}}
# Lint the code with ruff
lint:
uv run ruff check {{script}}
# Lint and auto-fix what ruff can fix
lint-fix:
uv run ruff check --fix {{script}}
# Format check + lint (CI-friendly)
check: format-check lint
# Run the script (needs sudo: HID feature reports require root on macOS).
# Pass extra flags through, e.g. `just run --profiles 0 --reuse_connection true`
run *ARGS:
sudo uv run {{script}} {{ARGS}}
# temp diagnostic
diag:
uv run python -c "import sys; print('exe', sys.executable)"
uv run python -c "import hid; print('hid', hid.__file__)"