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:
make install
-
Run tests:
make test
Execute the full test suite:
make testRun specific test files:
make test FILE=my_tests/test_core_structure.pyFormat code:
make formatCheck code style:
make 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
- pre-commit: Git hooks framework
Clear and resync:
uv cache clean
make install