Skip to content

Commit ee2f27f

Browse files
committed
🐛 fix: substitute '-' in tasks names to ':' so that mise understand them
1 parent 55484dd commit ee2f27f

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ check Check it all!
130130
docs-check Check if the documentation builds correctly.
131131
check-quality Run linters and format checks.
132132
check-types Run static type checks.
133-
clean Delete build artifacts.
133+
clean-all Delete build artifacts.
134134
clean-cache Remove cache files.
135135
coverage Generate coverage reports (text, HTML, XML).
136136
docker-build Build Docker images.

template/Makefile.jinja

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ actions = \
77
check-quality \
88
check-security \
99
check-types \
10-
clean \
10+
clean-all \
1111
clean-cache \
1212
coverage \
1313
{%- if with_doppler %}
@@ -30,7 +30,6 @@ actions = \
3030
docs-deploy \
3131
{%- endif %}
3232
format \
33-
pre-commit \
3433
{%- if publish_to_pypi %}
3534
publish \
3635
{%- endif %}
@@ -54,7 +53,11 @@ _check-mise:
5453

5554
.PHONY: $(actions)
5655
$(actions): _check-mise
57-
@mise run "$@"
56+
@mise run "$(subst -,:,$@)"
57+
58+
.PHONY: pre-commit
59+
pre-commit: _check-mise
60+
@mise run "pre-commit"
5861

5962

6063
.PHONY: help

template/mise.toml.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description = "Set up the development environment"
1313
quiet = true
1414
run = ["uv sync", "uv run pre-commit install -f"]
1515
{% if with_typer_cli %}
16-
[tasks.setup-cli]
16+
[tasks."setup:cli"]
1717
description = "Install the project CLI globally via uv"
1818
run = "uv tool install ."
1919
{% endif %}
@@ -268,18 +268,18 @@ uv publish
268268

269269
# --- Cleanup -----------------------------------------------------------------
270270

271-
[tasks.clean-cache]
271+
[tasks."clean:cache"]
272272
description = "Delete cache files"
273273
quiet = true
274274
run = '''
275275
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
276276
rm -rf .cache .pytest_cache .mypy_cache .ruff_cache
277277
'''
278278

279-
[tasks.clean]
279+
[tasks."clean:all"]
280280
description = "Delete build artifacts"
281281
quiet = true
282-
depends = ["clean-cache"]
282+
depends = ["clean:cache"]
283283
run = "rm -rf build dist htmlcov site .coverage* coverage.xml"
284284
{% if with_conventional_commits %}
285285

@@ -326,7 +326,7 @@ else
326326
fi
327327

328328
# Post-release tasks
329-
mise run clean
329+
mise run clean:all
330330
mise run build
331331
{%- if publish_to_pypi %}
332332
mise run publish

0 commit comments

Comments
 (0)