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.
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-16.0.4-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b643bdea4e31f654db3ef9c377d6a75bcfc57d3d5d7ca6e7f6c6077a47b0d5 |
|
MD5 | bfa2f44c0eb86092e924ede1e29ee522 |
|
BLAKE2b-256 | 273864ea10999deab55595d1150d93a0d2551c1ae6795b3d1265e55e2d97de5d |
Hashes for clang_tidy-16.0.4-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5589dd5c6f0d254760167d3f52993485e4a4796387f790d633493dfccaed7590 |
|
MD5 | 3132e95c1319da68e11ecb7c12aebd81 |
|
BLAKE2b-256 | bdb1a9d1ff2167f980003cfcf95f62af16cb7904a41b94b2ae368b4f41b2ae4a |
Hashes for clang_tidy-16.0.4-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae894f7356a30ca7713b626aef79366a164e25df235064b6a74e9a6bede37930 |
|
MD5 | 1e88a86b1642424f8f51e0110179041d |
|
BLAKE2b-256 | 4eb688d7e587121dac79aef316e54d14b6b3f7fca0811310791bae910f03fc93 |
Hashes for clang_tidy-16.0.4-py2.py3-none-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7a3e57c86a667cfc80e9a0c949f2848bb30e216e09bc3319f958217a814bdf |
|
MD5 | 34adfda11a1bf3b781874d0d68327335 |
|
BLAKE2b-256 | 114a330b35270d6c213e5a9672cd3884f757e9db5dbe9f9759c58702ae67987d |
Hashes for clang_tidy-16.0.4-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc4df5a81bdb99bd7aeff0de23a068647dcd1ea30418df924d17d28dde20a610 |
|
MD5 | 9c9a4a819dfacfa6111e4bc1689b1129 |
|
BLAKE2b-256 | 9d096c2bd5f64cea3bdfe1bf5692ae81f2906a839bfedd072c4b447140148a6b |
Hashes for clang_tidy-16.0.4-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc66acd1df4c732fcaf81b894209ad8662d2b515271bf217e8570e257866e938 |
|
MD5 | e13e2999e193867d31e3c42e59aa16da |
|
BLAKE2b-256 | 20dba07ac38cc795d796d3bb8ea914092aea1fef8f168fde482481f0bbc8a2c9 |
Hashes for clang_tidy-16.0.4-py2.py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c5f5bd1188ada71b28e01a82fb61efb2bedb88c1e627b6d79663c42eefe647 |
|
MD5 | 743e5d740dba89c72fa60bdcceb28ce2 |
|
BLAKE2b-256 | 3bd8235d2b8b5c4b828f02282e2dedb92756dfd51341f7c714a89cd5bd2716ba |
Hashes for clang_tidy-16.0.4-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de01654d8683226ef606db27c2d0baafc63b02d926f2da74044a93e1aff1e2fd |
|
MD5 | fef9f8056ef6fabf37f59a6b4794c3f1 |
|
BLAKE2b-256 | 4f04313bb3bbe6f2f3aec109b17ef4db2320f251005a9702c7dca1d015eecd87 |