Skip to content

Commit ac53180

Browse files
committed
Add mbake
1 parent 1bcf46c commit ac53180

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

Makefile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,35 @@ upgrade:
1616

1717
# Workaround for make being unable to pass arguments to underlying cmd
1818
# $ SDK_DEPS_GROUP="build" make uv-sync-ci
19-
.PHONY: ci-install
20-
ci-install:
21-
uv sync --locked --group $(SDK_DEPS_GROUP)
22-
2319
UV_RUN_CMD := uv run --frozen --no-config
2420
.PHONY: lint
25-
lint: lint-python # TODO: Add mbake
21+
lint: lint-python lint-makefile
2622

2723
.PHONY: lint-python
2824
lint-python:
2925
$(UV_RUN_CMD) basedpyright
3026
$(UV_RUN_CMD) ruff check --fix
3127
$(UV_RUN_CMD) ruff format
3228

29+
.PHONY: lint-makefile
30+
lint-makefile:
31+
$(UV_RUN_CMD) mbake format --config ./.bake.toml Makefile docs/Makefile
32+
3333
UV_RUN_CMD := uv run --frozen --no-config
3434
.PHONY: ci-lint
35-
ci-lint: ci-lint-python # TODO: Add mbake
35+
ci-lint: ci-lint-python ci-lint-makefile
3636

3737
.PHONY: ci-lint-python
3838
ci-lint-python:
3939
$(UV_RUN_CMD) basedpyright
4040
$(UV_RUN_CMD) ruff check --fix-only
4141
$(UV_RUN_CMD) ruff format --diff
4242

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
47+
4348
.PHONY: clean
4449
clean:
4550
rm -rf ./build ./dist ./.venv ./.ruff_cache ./.pytest_cache ./splunk_sdk.egg-info ./__pycache__ ./**/__pycache__

0 commit comments

Comments
 (0)