Skip to content

Commit 2efc68b

Browse files
committed
fix(template): streamline Copier configuration and enhance mise setup
Refactor `copier.yaml` by removing outdated file migrations and adjusting `_skip_if_exists` rules, simplifying template maintenance. Introduce a `mise` enter hook in `10-python.toml` to automatically run `mise run install` for improved developer environment setup. Remove `playground/` from `.gitignore` to allow tracking of this directory.
1 parent 3d0b407 commit 2efc68b

4 files changed

Lines changed: 7 additions & 33 deletions

File tree

copier.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ _migrations: &migrations
1818
- rm --force --verbose '.config/copier/direnv/10-python.sh'
1919
- rm --force --verbose '.config/copier/mise/scripts/setup-python.sh'
2020
- rm --force --verbose '.config/copier/python.just'
21+
- rm --force --verbose '.config/direnv/10-python.sh'
2122
- rm --force --verbose '.config/mise/conf.d/00-python.toml'
2223
- rm --force --verbose '.config/mise/conf.d/10-python.toml'
2324
- rm --force --verbose '.github/copier/.copier-answers.python.yaml'
@@ -48,9 +49,6 @@ _skip_if_exists:
4849
- pyproject.toml
4950
- README.md
5051
- src/
51-
- "!.config/copier/mkdocs.yaml"
52-
- "!.config/linters/.ruff.toml"
53-
- "!.config/linters/pyrightconfig.json"
5452

5553
_subdirectory: template
5654

template/.config/direnv/10-python.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#:schema https://mise.jdx.dev/schema/mise.json
2+
# This file is @generated by <https://github.com/liblaf/copier-python>.
3+
# DO NOT EDIT!
4+
5+
[hooks]
6+
enter = "mise run install"

template/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Globally Useful gitignores
44
*.log
55
*.log.*
6-
playground/
76

87
# Byte-compiled / optimized / DLL files
98
__pycache__/

0 commit comments

Comments
 (0)