Skip to content

Commit ecd6bb2

Browse files
committed
build(just): migrate commands to uv run
1 parent 043f25b commit ecd6bb2

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

Justfile

Lines changed: 14 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
@@ -37,9 +38,9 @@ sync: _require-uv
3738
uv run pre-commit install
3839

3940
# run tests with coverage and show a coverage report
40-
coverage:
41-
coverage run -m pytest
42-
coverage report
41+
coverage: _require-uv
42+
uv run coverage run -m pytest
43+
uv run coverage report
4344

4445
# clean build artifacts and caches
4546
clean:
@@ -51,8 +52,8 @@ typecheck: _require-uv
5152
uv run mypy
5253

5354
# check code for common misspellings
54-
spell:
55-
codespell
55+
spell: _require-uv
56+
uv run codespell
5657

5758
# run all quality checks
5859
check: format lint coverage typecheck spell
@@ -64,3 +65,5 @@ help:
6465
alias fmt := format
6566
alias cov := coverage
6667
alias mypy := typecheck
68+
69+
alias dev := sync

0 commit comments

Comments
 (0)