Skip to content

Commit 64afe61

Browse files
authored
Update copier rules (#24)
1 parent 205c42a commit 64afe61

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎copier.yml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
# Copier configuration for this template.
22
# See https://copier.readthedocs.io/en/stable/configuring/ for more information.
3-
_min_copier_version: "9.0"
3+
_min_copier_version: "9.5"
44
_subdirectory: template
55
# Only *.jinja files are rendered, so `${{ }}` in GitHub workflows is left untouched
66
_templates_suffix: .jinja
7+
_exclude:
8+
# Defaults; setting _exclude replaces them, so re-add the ones you want
9+
- "~*"
10+
- "*.py[co]"
11+
- "__pycache__"
12+
- ".git"
13+
- ".DS_Store"
14+
# Example code is only added on `copier copy`; `copier update` never adds it back
15+
- "{% if _copier_operation == 'update' %}src/*/hello_world.py{% endif %}"
16+
- "{% if _copier_operation == 'update' %}tests/test_hello_world.py{% endif %}"
17+
- "{% if _copier_operation == 'update' %}scripts/sync-labels.sh{% endif %}"
718
_tasks:
819
- uv lock
920

0 commit comments

Comments
 (0)