File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2323test : _require-hatch
2424 hatch run test:test
2525
26+
2627# build the package
2728build : _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
4142clean :
@@ -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
5455check : format lint coverage typecheck spell
6061alias fmt := format
6162alias cov := coverage
6263alias mypy := typecheck
64+ alias dev := sync
You can’t perform that action at this time.
0 commit comments