Skip to content

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 into uv.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 by dev).
  • Tool Settings – Configures tools like ruff ⧉ section [tool.<name-of-tool>].
  • Developer Commands – Defined under [tool.poe.tasks] (usually check-<type> or fix-<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:

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.toml
  • prek.toml
  • .github/workflows/