Basic¶
This guide covers essential adjustments to the template.
Caution
Keep changes minimal to simplify updates. If your changes relate to a specific section, you may want to consult details documentation.
Project metadata¶
Declare package metadata directly in the [project] table of pyproject.toml.
- Runtime Dependencies – Add dependencies to
[project].dependencies; uv resolves them intouv.lock. - Keywords – Edit
[project].keywords. - Classifiers – Edit
[project].classifiers. - Nested Metadata – Configure optional dependencies, scripts, GUI scripts, and entry points in the corresponding
[project]fields.
Tool configuration¶
Development and tool adjustments are made in pyproject.toml, which controls:
- Developer Dependencies – Managed in
[dependency-groups](each dependency prefixed bydev). - Tool Settings – Configures tools like
ruff⧉ section[tool.<name-of-tool>]. - Developer Commands – Defined under
[tool.poe.tasks](usuallycheck-<type>orfix-<type>).
Note
Tool sections are ordered by importance and assumed frequency of change.
prek¶
Some tools not integrated with pyproject.toml can be configured by editing prek.toml.
Tip
Non-pyproject.toml configurations are at the beginning of the file.
More details: prek documentation ⧉
GitHub Actions¶
opentemplate minimizes manual GitHub Actions configuration, allowing modifications through pyproject.toml.
To add or edit actions, edit files in .github/workflows/ folder.
Tip
See GitHub Actions Guide for more information.
Other adjustments¶
For other modifications, check:
- Relevant documentation sections (mostly details documentation).
- FAQ for general questions.
- Tips and Tricks
Important
Need Help? Search the docs for specific files or directories. If you can’t find what you need, please open an issue ⧉.
Code sources¶
pyproject.tomlprek.toml.github/workflows/