Skip to content

Commit 2bca305

Browse files
committed
Use long options and add missing init-dev just task
1 parent e889ace commit 2bca305

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.justfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ format:
99

1010
init:
1111
[ -d venv ] || python -m venv venv
12-
venv/bin/python -m pip install -r requirements.txt
12+
venv/bin/python -m pip install --requirement requirements.txt
1313

1414
init-dev: && sync
1515
[ -d venv ] || python -m venv venv
16-
venv/bin/python -m pip install -r requirements-dev.txt
16+
venv/bin/python -m pip install --requirement requirements-dev.txt
1717
venv/bin/pre-commit install
1818

1919
install-circuitpython version="7.2.5":
2020
curl --location --output-dir /run/media/$(id --name --user)/RPI-RP2 --remote-name https://downloads.circuitpython.org/bin/adafruit_qtpy_rp2040/en_US/adafruit-circuitpython-adafruit_qtpy_rp2040-en_US-{{ version }}.uf2
2121

2222
install:
23-
venv/bin/pipkin -m /run/media/$(id --name --user)/CIRCUITPY install --compile -r requirements-circuitpython.txt
23+
venv/bin/pipkin --mount /run/media/$(id --name --user)/CIRCUITPY install --compile --requirement requirements-circuitpython.txt
2424
cp code.py /run/media/$(id --name --user)/CIRCUITPY
2525
udisksctl unmount --block-device $(findmnt --noheadings --output SOURCE --target /run/media/$(id --name --user)/CIRCUITPY)
2626

2727
alias l := lint
2828

2929
lint:
3030
venv/bin/yamllint .
31-
venv/bin/ruff check .
31+
venv/bin/ruff check --fix .
3232

3333
sync:
3434
venv/bin/pip-sync requirements-dev.txt requirements.txt

0 commit comments

Comments
 (0)