GitHub - ilbumi/copier-python-vscode: A simple vscode copier template to use with devcontainers
Copier template for Python projects.
This copier template is mainly for my own usage, but feel free to use it as you wish.
The template is heavily inspired by Pawamoy's Copier PDM.
Features
Existing features
- Python 3.9 or above
- PDM setup, with pre-defined
pyproject.toml - Pre-configured tools for code formatting, quality analysis and testing:
- Tests run with pytest and plugins
- Nox as a task runner
- All licenses from choosealicense.com
- Support for GitHub workflows
- VSCode Dev Containers as development environments
- Support for GitLab CI/CD
Planned Features
- Documentation built with MkDocs (Material theme and "autodoc" mkdocstrings plugin)
- Pre-configured tools for code formatting, quality analysis and testing:
- blacken-docs, support for tests
- Auto-generated
CHANGELOG.mdfrom git commits
Quick setup and usage
Requirements
You need git, copier, copier-templates-extensions, and pdm installed to use this template.
Starting a project
copier copy --trust "https://github.com/ilbumi/copier-python-vscode.git" /path/to/your/new/projectOr even shorter:
copier copy --trust "gh:ilbumi/copier-python-vscode" /path/to/your/new/projectWorking with the generated project
Use PDM to manage dependencies:
pdm lock -v -G full-dev pdm install -v -G full-dev
Run tasks with Nox:
pdm run nox -e check_safety pdm run nox -e lint
Install your project as a Python package:
pip install -U git+https://yourgit.example/project
Refer to Cookbook for tips