Skip to content

Commit cb36fb1

Browse files
committed
📦🎨 Remove extra spaces around Just variables
1 parent b04c302 commit cb36fb1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎project_name/justfile.jinja‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,24 +121,24 @@ release version: (_assert-legal-version version)
121121

122122
# Add a new version tag at a specific commit
123123
tag-version-at-commit version commit: (_assert-legal-version version)
124-
just check-at-commit {{ commit }}
125-
just _tag-skip-check {{ version }} {{ commit }}
124+
just check-at-commit {{commit}}
125+
just _tag-skip-check {{version}} {{commit}}
126126

127127
version_regex := '^([1-9][0-9]*!)?(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*))*((a|b|rc)(0|[1-9][0-9]*))?(\.post(0|[1-9][0-9]*))?(\.dev(0|[1-9][0-9]*))?$'
128128

129129
_assert-legal-version version:
130-
@echo "{{ version }}" | grep -qE '{{ version_regex }}' || ( echo "Error: not a legal version" && false )
130+
@echo "{{version}}" | grep -qE '{{version_regex}}' || ( echo "Error: not a legal version" && false )
131131

132132
tmp_rc_dir := '/tmp/rc/' + file_name(justfile_directory()) + '/' + datetime('%s')
133133

134134
# Run code checks at a specific commit
135135
check-at-commit commit:
136-
git worktree add {{ tmp_rc_dir }} --detach {{ commit }}
137-
just -f {{ tmp_rc_dir }}/justfile _check || ( git worktree remove -f {{ tmp_rc_dir }} && false )
138-
git worktree remove {{ tmp_rc_dir }}
136+
git worktree add {{tmp_rc_dir}} --detach {{commit}}
137+
just -f {{tmp_rc_dir}}/justfile _check || ( git worktree remove -f {{tmp_rc_dir}} && false )
138+
git worktree remove {{tmp_rc_dir}}
139139

140140
_tag-skip-check version commit: (_assert-legal-version version)
141-
git tag -a v{{ version }} -m "Release v{{ version }}" {{ commit }}
141+
git tag -a v{{version}} -m "Release v{{version}}" {{commit}}
142142

143143
{%- endraw %}
144144

@@ -148,12 +148,12 @@ _tag-skip-check version commit: (_assert-legal-version version)
148148
# Generate reference pages from docstrings
149149
build-docs-ref:
150150
rm -rf docs/reference
151-
uv run --python 3.{{ python_max }} --only-group docs scripts/gen_ref_pages.py
151+
uv run --python 3.{{python_max}} --only-group docs scripts/gen_ref_pages.py
152152

153153
# Build the documentation
154154
build-docs: build-docs-ref
155-
uv run --python 3.{{ python_max }} --only-group docs mkdocs build
155+
uv run --python 3.{{python_max}} --only-group docs mkdocs build
156156

157157
# Serve the documentation locally
158158
serve-docs: build-docs-ref
159-
uv run --python 3.{{ python_max }} --only-group docs mkdocs serve
159+
uv run --python 3.{{python_max}} --only-group docs mkdocs serve

0 commit comments

Comments
 (0)