Skip to content

Commit 1a3ea0e

Browse files
committed
Add mbake
1 parent d334d2d commit 1a3ea0e

3 files changed

Lines changed: 57 additions & 192 deletions

File tree

‎.bake.toml‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# mbake configuration file
2+
# Generated with: mbake init
3+
4+
# Global settings
5+
debug = false
6+
verbose = false
7+
8+
# Error message formatting
9+
gnu_error_format = true
10+
wrap_error_messages = false
11+
12+
[formatter]
13+
# Spacing settings - enable proper spacing
14+
space_around_assignment = true
15+
space_before_colon = false
16+
space_after_colon = true
17+
18+
# Line continuation settings
19+
normalize_line_continuations = true
20+
max_line_length = 100
21+
22+
# PHONY settings
23+
auto_insert_phony_declarations = true
24+
group_phony_declarations = false
25+
phony_at_top = false
26+
27+
# General settings - enable proper formatting
28+
remove_trailing_whitespace = true
29+
ensure_final_newline = true
30+
normalize_empty_lines = true
31+
max_consecutive_empty_lines = 2
32+
fix_missing_recipe_tabs = true
33+
34+
# Conditional formatting settings (Default disabled)
35+
indent_nested_conditionals = false
36+
# Indentation settings
37+
tab_width = 2
38+
39+
# Variable alignment settings
40+
align_variable_assignments = false
41+
align_across_comments = false

‎Makefile‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,37 @@ ci-install:
2222

2323
UV_RUN_CMD := uv run
2424
.PHONY: lint
25-
lint: lint-python # TODO: Add mbake
25+
lint: lint-python lint-makefile
2626

2727
.PHONY: lint-python
2828
lint-python:
2929
$(UV_RUN_CMD) ruff check --fix-only
3030
$(UV_RUN_CMD) ruff format
3131
$(UV_RUN_CMD) basedpyright
3232

33+
.PHONY: lint-makefile
34+
lint-makefile:
35+
$(UV_RUN_CMD) mbake format --config ./.bake.toml Makefile docs/Makefile
36+
3337
.PHONY: ci-lint
34-
ci-lint: ci-lint-python # TODO: Add mbake
38+
ci-lint: ci-lint-python ci-lint-makefile
3539

3640
.PHONY: ci-lint-python
3741
ci-lint-python:
3842
$(UV_RUN_CMD) ruff check --fix-only --exit-non-zero-on-fix
3943
$(UV_RUN_CMD) ruff format --check
4044
$(UV_RUN_CMD) basedpyright
4145

46+
.PHONY: ci-lint-makefile
47+
ci-lint-makefile:
48+
$(UV_RUN_CMD) mbake format --config ./.bake.toml --check Makefile docs/Makefile
49+
$(UV_RUN_CMD) mbake validate --config ./.bake.toml Makefile docs/Makefile
50+
51+
.PHONY: ci-lint-makefile
52+
ci-lint-makefile:
53+
$(UV_RUN_CMD) mbake format --config ./.bake.toml --check Makefile docs/Makefile
54+
$(UV_RUN_CMD) mbake validate --config ./.bake.toml Makefile docs/Makefile
55+
4256
.PHONY: clean
4357
clean:
4458
rm -rf ./build ./dist ./.venv ./.ruff_cache ./.pytest_cache ./splunk_sdk.egg-info ./__pycache__ ./**/__pycache__

‎docs/make.bat‎

Lines changed: 0 additions & 190 deletions
This file was deleted.

0 commit comments

Comments
 (0)