Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
"config:base",
":disableDependencyDashboard"
],
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": [
"/^\\{\\{ cookiecutter\\.slug \\}\\}/Makefile/"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\n[a-zA-Z0-9_]+ \\?= (?<currentValue>\\S+)"
]
}
],
"poetry": {
"enabled": true
},
Expand Down
7 changes: 4 additions & 3 deletions {{ cookiecutter.slug }}/.github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: snow-actions/eclint@v1.0.1
with:
args: 'check'
- name: Check EditorConfig conformance
run: |
make format_editorconfig
git diff --exit-code
test:
runs-on: ubuntu-latest
{%- if cookiecutter.add_matrix == "y" %}
Expand Down
6 changes: 5 additions & 1 deletion {{ cookiecutter.slug }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ lint_kubent: ## Check for deprecated Kubernetes API versions
{%- endif %}

.PHONY: format
format: format_jsonnet ## All-in-one formatting
format: format_jsonnet format_editorconfig ## All-in-one formatting

@simu simu Oct 22, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're adding a new format_ make target for editorconfig, we should add the equivalent target for linting, see above in the template Makefile.


.PHONY: format_jsonnet
format_jsonnet: $(JSONNET_FILES) ## Format jsonnet files
$(JSONNET_DOCKER) $(JSONNETFMT_ARGS) --in-place -- $?

.PHONY: format_editorconfig
format_editorconfig: ## Fix EditorConfig issues
npx --yes eclint@$(ECLINT_VERSION) fix .

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you realize that this won't work on everyone's machine? Please use a suitable docker image (the same way we do for Jsonnet etc.) instead of directly invoking a CLI tool that may or may not exist on a machine.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some have even problems with docker. Ok, will do.

@simu simu Oct 22, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, if you have problems with docker or podman, you won't have any luck running any Commodore component stuff locally without custom magic.

edit: if you structure the helper variables the same as what we have for Commodore, yamllint and Jsonnet in Makefile.vars.mk, users will be able to use their local npx by overriding NPX_CMD (if modelled after COMMODORE_CMD) or NPX_DOCKER (if modelled after JSONNET_DOCKER and YAMLLINT_DOCKER).


.PHONY: docs-serve
docs-serve: ## Preview the documentation
$(ANTORA_PREVIEW_CMD)
Expand Down
3 changes: 3 additions & 0 deletions {{ cookiecutter.slug }}/Makefile.vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ YAMLLINT_DOCKER ?= $(DOCKER_CMD) $(DOCKER_ARGS) $(root_volume) $(YAMLLINT_IMAGE)
VALE_CMD ?= $(DOCKER_CMD) $(DOCKER_ARGS) $(root_volume) --volume "$${PWD}"/docs/modules:/pages ghcr.io/vshn/vale:2.15.5
VALE_ARGS ?= --minAlertLevel=error --config=/pages/ROOT/pages/.vale.ini /pages

# renovate: datasource=npm depName=eclint
ECLINT_VERSION ?= 2.8.1

ANTORA_PREVIEW_CMD ?= $(DOCKER_CMD) run --rm --publish 35729:35729 --publish 2020:2020 $(antora_git_volume) --volume "${PWD}/docs":/preview/antora/docs ghcr.io/vshn/antora-preview:3.1.2.3 --style=syn --antora=docs

COMMODORE_CMD ?= $(DOCKER_CMD) $(DOCKER_ARGS) $(git_volume) $(root_volume) docker.io/projectsyn/commodore:latest
Expand Down
Loading