Skip to content

Installation

heki is a single executable: its Python package ships only that executable and installs no Python dependencies into your environment.

With uv, pipx, or pip

$ uv tool install heki
$ uvx heki check            # or run it without installing
$ pipx install heki
$ pip install heki

As a development dependency of a project:

$ uv add --dev heki

Wheels are published for these platforms:

OS Architectures
Linux x86-64, AArch64, x86-64 musl
macOS Apple silicon, Intel
Windows x86-64

From source

heki needs Rust 1.99 or newer:

$ git clone https://github.com/koxudaxi/heki
$ cd heki
$ cargo install --path crates/heki

Check the installation

$ heki --version
$ heki rule --all

Supported Python versions

  • heki analyzes code written for Python 3.11 to 3.15.
  • It does not need a Python interpreter to run.
  • The version of the checked code comes from target-version, or from requires-python; see Scope for what it changes.