This project provides Python wheels for clang-tools including clang-format
, clang-tidy
, making them easy to install via pip.
We aim to publish wheels for each major and minor release of clang-format
and clang-tidy
.
You can install clang-format or clang-tidy via pipx
or uv
:
pipx install git+https://github.com/cpp-linter/clang-tools-wheel.git#subdirectory=clang-format
pipx install git+https://github.com/cpp-linter/clang-tools-wheel.git#subdirectory=clang-tidy
pre-commit hooks are available for both clang-format
and clang-tidy
.
Example .pre-commit-config.yaml
:
repos:
- repo: https://github.com/cpp-linter/cpp-linter-hooks
rev: v1.1.3
hooks:
- id: clang-format
args: [--style=file] # Loads style from .clang-format file
- id: clang-tidy
args: [--checks=.clang-tidy] # Loads checks from .clang-tidy file
This project builds on the excellent work of:
We redistribute these wheels through GitHub releases for the cpp-linter-hooks project.