11srcs = src docs/modules/ROOT/examples tests
2+ UV_SYNC = uv sync --extra dev
3+ UV_RUN = uv run --extra dev
24
35# # all: Run linter and tests.
46.PHONY : all
@@ -11,18 +13,18 @@ help: Makefile
1113
1214# # install: Install all requirements.
1315.PHONY : install
14- install : install-corva-sdk install-dev
16+ install :
17+ @$(UV_SYNC )
1518
1619# # install-corva-sdk: Install corva-sdk requirements.
1720.PHONY : install-corva-sdk
1821install-corva-sdk :
19- @pip install -U pip
20- @pip install -U -e .
22+ @uv sync
2123
2224# # install-dev: Install dev requirements.
2325.PHONY : install-dev
24- install-dev : install-corva-sdk
25- @pip install -U ' .[dev] '
26+ install-dev :
27+ @$( UV_SYNC )
2628
2729
2830# # test: Run tests.
@@ -32,39 +34,39 @@ test: up-cache unit-tests integration-tests down-cache
3234# # unit-tests: Run unit tests.
3335unit-tests : test_path = tests/unit
3436unit-tests :
35- @coverage run -m pytest $(test_path )
37+ @$( UV_RUN ) coverage run -m pytest $(test_path )
3638
3739# # integration-tests: Run integration tests.
3840.PHONY : integration-tests
3941integration-tests : export CACHE_URL = redis://localhost:6379
4042integration-tests : test_path = tests/integration
4143integration-tests :
42- @coverage run -m pytest $(test_path )
44+ @$( UV_RUN ) coverage run -m pytest $(test_path )
4345
4446# # coverage: Display code coverage in the console.
4547.PHONY : coverage
4648coverage : test
47- @coverage combine
48- @coverage report --sort=cover
49+ @$( UV_RUN ) coverage combine
50+ @$( UV_RUN ) coverage report --sort=cover
4951
5052# # coverage-html: Display code coverage in the browser.
5153.PHONY : coverage-html
5254coverage-html : test
53- @coverage combine
54- @coverage html
55+ @$( UV_RUN ) coverage combine
56+ @$( UV_RUN ) coverage html
5557 @x-www-browser htmlcov/index.html
5658
5759# # lint: Run linter.
5860.PHONY : lint
5961lint :
60- @ruff check $(srcs )
61- @mypy $(srcs )
62+ @$( UV_RUN ) ruff check $(srcs )
63+ @$( UV_RUN ) mypy $(srcs )
6264
6365# # format: Format all files.
6466.PHONY : format
6567format :
66- @ruff check --fix $(srcs )
67- @ruff format $(srcs )
68+ @$( UV_RUN ) ruff check --fix $(srcs )
69+ @$( UV_RUN ) ruff format $(srcs )
6870
6971# # docs: Generate docs.
7072.PHONY : docs
0 commit comments