Skip to content

Python

Lint, format and test Python code.

Supported tools

  • Mypy
  • Pytest
  • Ruff
  • ty

Supported build systems (for installing/building)

  • uv

Build systems

A build system that is supported by Kraken is needed to use the {@pylink kraken.std.python.tasks.build_task.BuildTask}. Most build systems will support managed Python environments for the current Python project (e.g. uv sync will create a virtual environment and install the project into it).

Build systems implemented for Kraken will take care of the installation, ensuring that the Python package indexes registered in the build script are made available to the installation process.

Kraken assumes that these package managers or build systems are installed locally by the user and accessible in the $PATH. If you use a custom installation, make sure these tools are available in there.

Publishing

Independent of the Python build system used, Kraken will use [uv publish] to publish to a Package index.