Skip to content

Commit 3142443

Browse files
authored
Make use of uv run --frozen (#40)
1 parent 5fc893f commit 3142443

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Justfile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
default: install lint check-types test test-integration
22

33
install:
4-
uv -q lock
5-
uv -q sync
6-
7-
test *args:
8-
.venv/bin/pytest {{args}}
4+
uv lock
5+
uv sync
96

107
lint:
11-
uv -q run ruff check .
12-
uv -q run ruff format .
8+
uv run -q --frozen ruff check .
9+
uv run -q --frozen ruff format .
1310

1411
check-types:
15-
uv -q run mypy .
12+
uv run -q --frozen mypy .
13+
14+
test *args:
15+
uv run -q --frozen pytest {{args}}
16+
17+
test-integration *args:
18+
#!/bin/bash
19+
trap 'echo; docker compose down --remove-orphans' EXIT
20+
docker compose run --build --rm app .venv/bin/pytest tests/integration.py --no-cov {{args}}
1621

1722
run-artemis:
1823
docker compose up
1924

2025
run-consumer:
21-
ARTEMIS_HOST=0.0.0.0 uv -q run python testing/consumer.py
26+
ARTEMIS_HOST=0.0.0.0 uv run -q --frozen python testing/consumer.py
2227

2328
run-producer:
24-
ARTEMIS_HOST=0.0.0.0 uv -q run python testing/producer.py
25-
26-
test-integration *args:
27-
#!/bin/bash
28-
trap 'echo; docker compose down --remove-orphans' EXIT
29-
docker compose run --build --rm app .venv/bin/pytest tests/integration.py --no-cov {{args}}
29+
ARTEMIS_HOST=0.0.0.0 uv run -q --frozen python testing/producer.py
3030

3131
publish:
3232
rm -rf dist/*

0 commit comments

Comments
 (0)