opentemplate¶
Features¶
opentemplate is a Python template with the following features:
- Truly open source ⧉: no tokens, no fees, no premium plans, open source software only
- Ease of use ⧉: clone templated repo, run
pdm setupand focus on your code - Consistency ⧉:
pre-commitandGitHub Actionsshare the same config (pyproject.toml) - Security ⧉: SLSA ⧉ L3+ (public/enterprise) or L2 (private), OSSF Best Practices ⧉
- Batteries included ⧉: multiple checkers for Python, YAML, Markdown, prose, etc.
- Performance ⧉: Parallel checks, builds, minimally-sized caches and checkouts
Quick start¶
Installation¶
Note
Install pdm ⧉ (if you don't have it already), for Linux/MacOS:
- Create a new GitHub repository using this template (green
Use this templatebutton) - Name your repo (use underscore
_, not hyphens-) - Add project description (necessary!)
- Wait until the setup commit appears (performed by
github-actions[bot], it may take a few minutes) - Clone the repository
- Run
pdm setupcommand locally to setup development environment
Important
For more details read the documentation ⧉
Usage¶
- Create a new branch
- Optionally add dependencies to
pyproject.toml - Write code in
/src/<project_name>and tests in/tests - Use
git add,git commitandgit pushyour changes pre-commitwill guide you through the process
Important
For more details read the documentation ⧉