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
@@ -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
4546clean :
@@ -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
5859check : format lint coverage typecheck spell
6465alias fmt := format
6566alias cov := coverage
6667alias mypy := typecheck
68+
69+ alias dev := sync
You can’t perform that action at this time.
0 commit comments