Skip to content

Commit 0749b10

Browse files
committed
feat(just): add uv run for tool commands and dev alias
1 parent f4d806f commit 0749b10

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

template/Justfile

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ _require-hatch:
88
@hatch --version > /dev/null || (echo "Please install hatch: uv tool install hatch" && exit 1)
99

1010
# check code style and potential issues
11-
lint:
12-
ruff check
11+
lint: _require-uv
12+
uv run ruff check .
1313

1414
# format code
15-
format:
16-
ruff format
15+
format: _require-uv
16+
uv run ruff format .
1717

1818
# fix automatically fixable linting issues
19-
fix:
20-
ruff check --fix
19+
fix: _require-uv
20+
uv run ruff check --fix .
2121

2222
# run tests across all supported Python versions
2323
test: _require-hatch
2424
hatch run test:test
2525

26+
2627
# build the package
2728
build: _require-uv
2829
uv build
@@ -33,9 +34,9 @@ sync: _require-uv
3334
uv run pre-commit install
3435

3536
# run tests with coverage and show a coverage report
36-
coverage:
37-
coverage run -m pytest
38-
coverage report
37+
coverage: _require-uv
38+
uv run coverage run -m pytest
39+
uv run coverage report
3940

4041
# clean build artifacts and caches
4142
clean:
@@ -47,8 +48,8 @@ typecheck: _require-uv
4748
uv run mypy
4849

4950
# check code for common misspellings
50-
spell:
51-
codespell
51+
spell: _require-uv
52+
uv run codespell
5253

5354
# run all quality checks
5455
check: format lint coverage typecheck spell
@@ -60,3 +61,4 @@ help:
6061
alias fmt := format
6162
alias cov := coverage
6263
alias mypy := typecheck
64+
alias dev := sync

0 commit comments

Comments
 (0)