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.8-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ff353dfa56d2b1afa09df7feedbee95d381339656cee8d8d61b326630d1ff2b |
|
MD5 | ee132b9d401f3d19d29319979fbbe8be |
|
BLAKE2b-256 | f5716f6dc6e3c02894a1bffd4c3d42e7d1ffe4ce594ed35714070c2e0c6a6db2 |
Hashes for clang_tidy-18.1.8-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9970d6c9c7e8c044582576f3be46bba3287d7280719b77c83e3977477de08ec4 |
|
MD5 | 68e2783e7d2bfda98ff19b4cf6b1f3d1 |
|
BLAKE2b-256 | e8b1ded93c535e210e300cfc25894aa4aaa2586f41dc89a621b5fcc782f298ba |
Hashes for clang_tidy-18.1.8-py2.py3-none-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f5e44649d2412bfe1563e6e7a4135102fbf2d98dbf30ce513b00a0a977c047 |
|
MD5 | ff30bb157b6d7e8ef399bd130a6db02a |
|
BLAKE2b-256 | f4f04e1ca21e9fc853a4f21fbd115a83155b15dbf436d0b62c58e92441677fbb |
Hashes for clang_tidy-18.1.8-py2.py3-none-musllinux_1_2_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cebd2aa934e07e95c6821f27daa26dcbffcd946bd224f1d2a105af4bc857c143 |
|
MD5 | 4e6a6f47d2410ed12b26b15cf7007b1b |
|
BLAKE2b-256 | 7095142c6e30cffe65267be0f5c9a3640dc55ad4bf6d08cef68ed25d6c52cd17 |
Hashes for clang_tidy-18.1.8-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c725a95c316d15df12f5bf7c1abfdf3cb9e4f3b9a9afb4cb6bb1e9df4e669493 |
|
MD5 | 1f7acceca1837a342b698882212e2733 |
|
BLAKE2b-256 | 80e5b645278ff2fd0f91a3ca7755b275ab3e6c44b4fc30068f736c449f127edd |
Hashes for clang_tidy-18.1.8-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f832286035f9df3be3b41ba29493ca9e67bf61a8636177da756d89b6313bbca |
|
MD5 | a02fb677c059d6451db01468773d65a3 |
|
BLAKE2b-256 | abbb2ea94f5588a563781f6163dd470ddbf22f573486ebb1633f9ea70bd554e4 |
Hashes for clang_tidy-18.1.8-py2.py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d635df55e45c9141b16f4d33ef785d3ec6944db66a43ece865981447460affc3 |
|
MD5 | c859630f8c7a368053f292f6f952890e |
|
BLAKE2b-256 | 85025917f013d7c7565d0c42f2acd49546732fb654e673828966f704b58f97f1 |
Hashes for clang_tidy-18.1.8-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 341f3bebe13ef31d6d3fb9a9fde52795557d7d67d7449e8ed98a36dfe29b7421 |
|
MD5 | 70277bd75ec394d53f28d9e4b4aa02a3 |
|
BLAKE2b-256 | 1118346ddfcd3d1864aceb777593f05f678697803beba1bcb8e01d931866a0b7 |