clang-tidy is a clang-based C++ “linter” tool.
Project description
clang-tidy Python distribution
This project packages the clang-tidy
utility as a Python package. It allows you to install clang-tidy
directly from PyPI:
python -m pip install clang-tidy
This projects intends to release a new PyPI package for each major and minor release of clang-tidy
.
Use with pipx
You can use pipx
to run clang-tidy, as well. For example, pipx run clang-tidy <args>
will run clang-tidy without any previous install required on any machine with pipx (including all default GitHub Actions / Azure runners, avoiding requiring a pre-install step or even actions/setup-python
).
Building new releases
The clang-tidy-wheel repository provides the logic to build and publish binary wheels of the clang-tidy
utility.
In order to add a new release, the following steps are necessary:
- Edit the version file to reflect the new version.
- Make a GitHub release to trigger the GitHub Actions release workflow. Alternatively, the workflow can be triggered manually.
On manual triggers, the following input variables are available:
use_qemu
: Whether to build targets that require emulation (default:true
)llvm_version
: Override the LLVM version (default:""
)wheel_version
: Override the wheel packaging version (default"0"
)deploy_to_testpypi
: Whether to deploy to TestPyPI instead of PyPI (default:false
)
The repository with the precommit hook is automatically updated using a scheduled Github Actions workflow.
Acknowledgments
This repository extends the great work of several other projects:
clang-tidy
itself is provided by the LLVM project under the Apache 2.0 License with LLVM exceptions.- The build logic is based on scikit-build which greatly reduces the amount of low level code necessary to package
clang-tidy
. - The
scikit-build
packaging examples of CMake and Ninja were very helpful in packagingclang-tidy
. - The CI build process is controlled by cibuildwheel which makes building wheels across a number of platforms a pleasant experience (!)
We are grateful for the generous provisioning with CI resources that GitHub currently offers to Open Source projects.
Troubleshooting
To see which clang-tidy binary the package is using
you can set CLANG_TIDY_WHEEL_VERBOSE
to 1
in your environment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for clang_tidy-19.1.0-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27104b3f7a6841d45ece284ba27f93ac7c982a5bf38a30fc6f280c4f0cd2fcfb |
|
MD5 | 50cd0a1298a3ce24ffdbfa8da962bb99 |
|
BLAKE2b-256 | b99bc9c14196d631a086386e153166e0c295bc1d690f5510078b2c528144ca51 |
Hashes for clang_tidy-19.1.0-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 082f520652a5268c4c97d94c1ff04686e31c9a76c29077beead491f6c345ab94 |
|
MD5 | cb9a7fc667db05883b60a04756a18c5e |
|
BLAKE2b-256 | b7e68a692b91d520d90838a1477779b652cadea6f766409a5c3b5e181612b750 |
Hashes for clang_tidy-19.1.0-py2.py3-none-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee2fe7afb34529dd6be9b8f367eaa864814c47e91479d34e3caedd56df80549b |
|
MD5 | 753072128d22bff139861946111d9a70 |
|
BLAKE2b-256 | 219ce3b4b92daf52dc1d7ce354c525308fcf9bcd7a2f8ce21822a816e4040f92 |
Hashes for clang_tidy-19.1.0-py2.py3-none-musllinux_1_2_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8441c66560a25e37bb57e3b8d63ac4067f9b6f92c4887f2952d26ed9e49143a0 |
|
MD5 | 44200d578788bc51096076f790874422 |
|
BLAKE2b-256 | 885998cd6415c8824077f297123bb47990b8d39d95354c17acc87c3cefe4d0aa |
Hashes for clang_tidy-19.1.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be843086d18f7c794fe43d9f3378c0c556fd09151a2375ed1943ff703c144970 |
|
MD5 | ee6f8c5f01da65a5a0ace9cd10e84e94 |
|
BLAKE2b-256 | 5d8f479c82737d3139035fd14ca20638371e0297322404a04d42ff35ad83575c |
Hashes for clang_tidy-19.1.0-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79050ed7771520cf9825786f5207dc55ba7b281fff96aca037c0962b104de6ba |
|
MD5 | 9b2127dfc934f324c6cb856a2cb225f0 |
|
BLAKE2b-256 | 7891622295ccb082db63124f3d0ac0dca403b730cad150022f9e44d4886c9cdd |
Hashes for clang_tidy-19.1.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7403c57db174bc17f94fec651a4c6c0bb050da74dc12e542be44edea8a77546 |
|
MD5 | 6c10679d432ef6a2c88a309faef94a15 |
|
BLAKE2b-256 | 030b3d85e0b71e07e632291c0655cd2965361e2376721d8f0ee396db61c75454 |
Hashes for clang_tidy-19.1.0-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61c81df8fbb032888d26ea7145b0a33d0b8539c1923f80084724bc6ee71f6220 |
|
MD5 | 1f775097d424e3b46d4c28e90be4a026 |
|
BLAKE2b-256 | bb4f9b4326066352c36a9296f8bad6d87874e083bf1673eaff167e5b9c066bd0 |