Copier template to quickly setup a Python project shell.
Suggestions are welcome. Template is maintained primarily for personal use.
Setup can be done with a standard copier copy https://github.com/EJOOSTEROP/copier-python.git .
command.
Alternatively use a Docker image with Copier if Copier is not installed on your system (this creates a workflow
folder locally):
docker run --rm -it -v ${pwd}/workflow:/usr/src/copier ghcr.io/ejoosterop/docker-copier copier copy gh:EJOOSTEROP/copier-python.git /usr/src/copier
- Python Project with src and tests folders.
- pyproject.toml file for project metadata and tool configuration.
- Git installed and standard .gitignore file.
- VS Code devcontainer setup; includes VS Code extensions.
- Using Poetry for dependency management.
- For linting and formatting: Ruff, Black and other (from VS Code extensions).
- Pre-commit hooks for Git.
- Nox to run tools in separate Python environment.
- MIT license, readme.md, empty changelog.md.
- Pytest, MyPy, toml-sort installed.
- Optional .dockerignore.
- Setup to use Github as a repository. Does not account for alternative.
Somehow copier takes the template from the latest released version on GitHub instead of the local version.
- Create useable readme.md shell.
- Github actions. Some examples:
- Github templates for issues, feature requests.
- Setup documentation. Example https://github.com/pappasam/toml-sort/blob/main/readthedocs.yaml.