File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66# --no-config skips Splunk's internal PyPI mirror
77UV_SYNC_CMD := uv sync --no-config
88
9- .PHONY : uv-sync
10- uv-sync :
9+ .PHONY : install
10+ install :
1111 $(UV_SYNC_CMD ) --dev
1212
13- .PHONY : uv- upgrade
14- uv- upgrade :
13+ .PHONY : upgrade
14+ upgrade :
1515 $(UV_SYNC_CMD ) --dev --upgrade
1616
17-
1817# Workaround for make being unable to pass arguments to underlying cmd
1918# $ SDK_DEPS_GROUP="build" make uv-sync-ci
20- .PHONY : uv-sync-ci
21- uv-sync-ci :
22- uv sync --locked --group $(SDK_DEPS_GROUP )
19+ UV_RUN_CMD := uv run --frozen --no-config
20+ .PHONY : lint
21+ lint : lint-python lint-makefile
22+
23+ .PHONY : lint-python
24+ lint-python :
25+ $(UV_RUN_CMD ) basedpyright
26+ $(UV_RUN_CMD ) ruff check --fix
27+ $(UV_RUN_CMD ) ruff format
28+
29+ .PHONY : lint-makefile
30+ lint-makefile :
31+ $(UV_RUN_CMD ) mbake format --config ./.bake.toml Makefile docs/Makefile
32+
33+ UV_RUN_CMD := uv run --frozen --no-config
34+ .PHONY : ci-lint
35+ ci-lint : ci-lint-python ci-lint-makefile
36+
37+ .PHONY : ci-lint-python
38+ ci-lint-python :
39+ $(UV_RUN_CMD ) basedpyright
40+ $(UV_RUN_CMD ) ruff check --fix-only
41+ $(UV_RUN_CMD ) ruff format --diff
42+
43+ .PHONY : ci-lint-makefile
44+ ci-lint-makefile :
45+ $(UV_RUN_CMD ) mbake format --config ./.bake.toml --check Makefile docs/Makefile
46+ $(UV_RUN_CMD ) mbake validate --config ./.bake.toml Makefile docs/Makefile
2347
2448.PHONY : clean
2549clean :
You can’t perform that action at this time.
0 commit comments