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-13.0.1.1-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 769959c4fe7aae749a8cea198596fdeacd9fda9a7f64038a06c927a741966c0c |
|
MD5 | c44de5aac8d231cd5c620db88345db57 |
|
BLAKE2b-256 | ea7505329a77078e3e6edd3cc71aa341b9e5055dfe1628548fe9109738fee57c |
Hashes for clang_tidy-13.0.1.1-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6526eeb0e84368bbe3683daecf7f77a2ca584c8513419e46aed09fb074636fbd |
|
MD5 | f569cdcee3e906ac7472e9f04446934b |
|
BLAKE2b-256 | b0008cf59aba0a130920b08258876b4f622b6f8e76f5c14fe74c79f6e56dbdb9 |
Hashes for clang_tidy-13.0.1.1-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca67eb25f709cd4af281274b091f16a9ea8cbef1fb190dc281fdb627e331cd03 |
|
MD5 | 25255143d41401da05368021e6f00c9f |
|
BLAKE2b-256 | f94448d17233a9954492795e30c5be2b33f8fa0fb5157ccc2834bbad76700761 |
Hashes for clang_tidy-13.0.1.1-py2.py3-none-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6776ed4f0f4bd872b085557e0f9aaca89233089546fc5dcf06596624ec21cadf |
|
MD5 | 69777ffbeb1174da5089e7a657f96938 |
|
BLAKE2b-256 | 6095f33123efcc1ee076ec086e2d1221c210e8ee18566e76b2d3cde3937b4f9a |
Hashes for clang_tidy-13.0.1.1-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd1b97d404b9dfcaa986ee664d51901170531a925219cf8966c3754f68da2f7e |
|
MD5 | d6ac23710134054bba76d1b36a4ca9a6 |
|
BLAKE2b-256 | e2c52d3360a351019dd885e8f61e247275fd587de60d4a76056a8bba7c5d66a6 |
Hashes for clang_tidy-13.0.1.1-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa99458ebc33c4ebd7ab1e29fa7642f151c33a39411086b5feca7b0a9630a7e4 |
|
MD5 | 2fe31f46960152a8d8dc74f411b8c509 |
|
BLAKE2b-256 | ff735f686c9d70519c650284a3456e474c5acbbf8620213d6cc2a8d69e9383c2 |
Hashes for clang_tidy-13.0.1.1-py2.py3-none-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67ed436ef2620d4ce5d4df4a3eca3ec2f81d0d5aacdfecf2c040b96b890b7e4 |
|
MD5 | 0c9f251a0844d3e694bcb2a2c81cbc6e |
|
BLAKE2b-256 | 1ff654623f648348df4c2a075a3e5e5e02d3202d47ede5460d2388154c9d4799 |