pyproject.toml

The standard configuration file at the root of a Python project, describing its name, version, dependencies, commands and build system.

In more detail

It is written in TOML. The [project] table holds the metadata and dependencies, [project.scripts] the entry points and [build-system] which build backend to use. Tools such as pytest, ruff and mypy can keep their settings there too.

Example

[project]
name = "wordcount"
version = "0.1.0"

Related terms

Taught in

References