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 setup
and focus on your code - Consistency ⧉:
pre-commit
andGitHub Actions
share 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 template
button) - 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 setup
command 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 commit
andgit push
your changes pre-commit
will guide you through the process
Important
For more details read the documentation ⧉