This guide covers local development setup and workflow for the Copier template project.
- Python 3.10 or newer
- Git
- uv (recommended) or pip/pipx
-
Clone the repository:
git clone https://github.com/patryk-gpl/copier-python-uv.git cd copier-python-uv -
Install dependencies:
mise run install
-
Run tests:
mise run test
Execute the full test suite:
mise run testRun specific test files:
uv run pytest my_tests/test_core_structure.pyFormat and lint code:
mise run lintCopier requires Git-tracked files when using vcs_ref="HEAD"
When running tests locally:
- Ensure all template files are committed to Git before running tests
- Copier uses Git to determine which files to include
- Uncommitted files in the working directory are ignored by Copier
Before running tests:
git add .
git commit -m "WIP: template changes"- uv: Fast Python package installer and resolver
- ruff: Fast Python linter and formatter
- pytest: Testing framework
- copier: Project template tool
- prek: Git hooks framework
Clear and resync:
uv cache clean
mise run install