Skip to content

Commit 4a11d8f

Browse files
committed
🔧 Improve hatch template scripts
Improve the default destination path of the `copy` script in the default Hatch environment (`.tmp` -> `.tmp/aiida-test`). Add the `--vcs-ref=HEAD` option to the scripts that use `copier copy`. This ensures that local changes are also included when generating the template with the Hatch scripts.
1 parent 9fd9bc6 commit 4a11d8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎pyproject.toml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ dependencies = [
44
"uv"
55
]
66
scripts.copy = [
7-
"copier copy . {args:.tmp} -f",
7+
"copier copy --vcs-ref=HEAD . {args:.tmp/aiida-test} -f",
88
]
99
scripts.install = [
10-
"copier copy . .tmp/aiida-test -f",
10+
"copier copy --vcs-ref=HEAD . .tmp/aiida-test -f",
1111
"uv pip install .tmp/aiida-test",
1212
]
1313
scripts.check = [
14-
"copier copy . .tmp/aiida-test -f",
14+
"copier copy --vcs-ref=HEAD . .tmp/aiida-test -f",
1515
"hatch fmt -l --check .tmp/aiida-test",
1616
]
1717
scripts.docs = [
18-
"copier copy . .tmp/aiida-test -f",
18+
"copier copy --vcs-ref=HEAD . .tmp/aiida-test -f",
1919
"cd .tmp/aiida-test/docs && myst start",
2020
]
2121
scripts.clean = [

0 commit comments

Comments
 (0)