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-18.1.1-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1df3dbd5f8ea6e1cf4fd8c695160fd43b327fa095cf885103f95d5a17d83604e |
|
MD5 | 36625555d435a9a2fa3b75cca83ba4b6 |
|
BLAKE2b-256 | 2904c64c3c7d0ca701320ea7433f02cdce70d77c3ee74a1b0883f88145c04b02 |
Hashes for clang_tidy-18.1.1-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 026b01fbb182426a91258c6b0a00124550a17c6b8f176a58224fc250bb8709ce |
|
MD5 | 2115c45da4c141e68b4241279aed8cc5 |
|
BLAKE2b-256 | 63c70eb62d506bd0a2778b450eb579c958db82956835517e4e4c8ffc6bc31fe8 |
Hashes for clang_tidy-18.1.1-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71c2b21d2ba7509d5fdc688314324a88a2f79836271908d55f1e0ce71a59c614 |
|
MD5 | 4ffbab490c255ebf4fb40f511bf90d8d |
|
BLAKE2b-256 | 6e2ecacbf6795a91ba658918953f51762ce82e37e3398d59458739c3b6133a3f |
Hashes for clang_tidy-18.1.1-py2.py3-none-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 723c0b2e1a49a08331eb86fbbd6085fbc4638bc6d823874a38ffb113536e8e77 |
|
MD5 | 5c08f577fede07a8f91caad34f7652e9 |
|
BLAKE2b-256 | 249fd8eb1223416b9ce433ec1f10a66be655b207710d05b49fc6b233a8d06f83 |
Hashes for clang_tidy-18.1.1-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b91805d3ceba678099644e0b66b0811fc42d713b23cb90de2a71540a059befe1 |
|
MD5 | 9f6ef4a03760b4702ff2c8f30efc9863 |
|
BLAKE2b-256 | 39b957eaeb58956020b8b2f3ca2991a41515d33f63d21c95c11bd350cf011c8f |
Hashes for clang_tidy-18.1.1-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3d4dba6af50b5bd1bd05f20d7a547a05a47cfa3e35a68c680cd6f07f02881b2 |
|
MD5 | 07bc9a99d176fc0e8be95fa60ea636cd |
|
BLAKE2b-256 | 64b1551a22b66097fe20e5a863179de5136dc775e467fca097a9e87860e86705 |
Hashes for clang_tidy-18.1.1-py2.py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 287159e0cef9dbd9aad485310ac4fc87567d8529358d8d41b41c62b67e7e9c5b |
|
MD5 | 8f9289a4ad03ddd06ce3e00cefbe405b |
|
BLAKE2b-256 | c8dbbda86152e8a26b4d24e9e2effa9c1418df317b30684327414936bdbe7269 |
Hashes for clang_tidy-18.1.1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6013ee4537d006a967be7d3172c5356d27f8c7adc096fc4f36fa24f47557197d |
|
MD5 | 6df6c4a6ec52895997fa51ceae61dac5 |
|
BLAKE2b-256 | 6a46d6d18356a9d3a71a55600132c5fb355bddcb2aac08193ec386320b64c315 |