Skip to content

Commit 9873d4a

Browse files
committed
🚸 Reduce verbose output when restoring environment in justfile
Replace `uv sync --exact` with `uv run --exact true` to restore environment without verbose output.
1 parent eff5059 commit 9873d4a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎project_name/justfile.jinja‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ deps-audit:
4747
uv run --exact --all-extras --all-groups --with pip-audit -- \
4848
pip-audit \
4949
--skip-editable
50-
uv sync --exact
50+
uv run --exact true
5151

5252

5353
### code quality ###
@@ -90,19 +90,19 @@ lint:
9090
uv run ruff check
9191
uv run --exact --all-extras --no-default-groups --group typing --group test -- dmypy run
9292
uv run --exact --all-extras --all-groups --with deptry -- deptry src/
93-
uv sync --exact
93+
uv run --exact true
9494
uv run pre-commit run --all-files
9595

9696
# Run Pylint (slow, not used in other tasks)
9797
pylint:
9898
uv run --exact --with pylint -- pylint src
99-
uv sync --exact
99+
uv run --exact true
100100

101101
# Run tests with pytest
102102
test:
103103
uv run --exact --all-extras --no-default-groups --group test \
104104
--reinstall-package {{ package_name }} -- pytest
105-
uv sync --exact
105+
uv run --exact true
106106

107107
# Run tests with pytest, using resolution lowest-direct
108108
test-lowest python:
@@ -112,7 +112,7 @@ test-lowest python:
112112
--reinstall-package {{ package_name }}
113113
mv uv.lock.1 uv.lock
114114
uv run --no-sync pytest
115-
uv sync --exact
115+
uv run --exact true
116116

117117

118118
### Release, tags, previous commits ###
@@ -163,16 +163,16 @@ build-docs-ref:
163163
rm -rf docs/reference
164164
uv run --exact --python 3.{{python_max}} --only-group docs -- \
165165
scripts/gen_ref_pages.py
166-
uv sync --exact
166+
uv run --exact true
167167

168168
# Build the documentation
169169
build-docs: build-docs-ref
170170
uv run --exact --python 3.{{python_max}} --only-group docs -- \
171171
mkdocs build
172-
uv sync --exact
172+
uv run --exact true
173173

174174
# Serve the documentation locally
175175
serve-docs: build-docs-ref
176176
uv run --exact --python 3.{{python_max}} --only-group docs -- \
177177
mkdocs serve
178-
uv sync --exact
178+
uv run --exact true

0 commit comments

Comments
 (0)