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-17.0.1-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90488cde4ee65e846b90c4f3308a2a4db720b93d3d7f80b126a1e25ef552dbb2 |
|
MD5 | 593ecf6e9b8c41bdb6a3427016d69206 |
|
BLAKE2b-256 | 0537fd22ebe8205d24886b02c98ac8ba7af135359f1ae40f78c3608105dbb6a5 |
Hashes for clang_tidy-17.0.1-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fddc34c560941f444a9969f06b1846e7fc4f049c21c3503f42d0f5b8728a61b1 |
|
MD5 | 1c60d1f21e41fdbafa04e7e7054c8ff7 |
|
BLAKE2b-256 | ce4670db845c2526ce02c766142f8b5b7ea1728cc3db70a6d6f26c28b96949ae |
Hashes for clang_tidy-17.0.1-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e571691cb49acde4a907a88f53af7d48c9c85ac8cb0bd2dd9c9714ac49e3b65 |
|
MD5 | fe09951d2fbcb6b3c1f41bae77dc6a0b |
|
BLAKE2b-256 | 02084192bd51831a8f5f06db496ed527285d66c3cfaf506fa38026ffa69af8d9 |
Hashes for clang_tidy-17.0.1-py2.py3-none-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f543d2997b3629115b059ca84c6408a1c95ac4d7b95ed265693bfb5157d9d3 |
|
MD5 | e60c83ab74e8000ce8104377f63ff6bf |
|
BLAKE2b-256 | e01b6670cdae4543d53ba0c131fdff147def687d23b19c23727be57455902a80 |
Hashes for clang_tidy-17.0.1-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 862dbc35d1f925b36638c5db7afc7f52e62a638bf186390abd9b6020c3f179b0 |
|
MD5 | 75cb81593ffb1e33bd230d0c6c63c6c2 |
|
BLAKE2b-256 | a297f9928e6d46ae0decf29bfe33beb2ebfcb0e263746f9a6418a37c1360c4c2 |
Hashes for clang_tidy-17.0.1-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5180cb97ef7ccf415a8e2600aff8746f401fb0392bcff91ed373eda8c8e36e2 |
|
MD5 | 358ff763d70daa8c7cc161f24e99dfed |
|
BLAKE2b-256 | 16977cf9d79b37de7d16055b0fb7909c64054a78ae1e586f8963ea62e08e1b1b |
Hashes for clang_tidy-17.0.1-py2.py3-none-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f57246fab0080bf40268ca97ef4e894cb14053d1e221e1d460ed9eacbdf76085 |
|
MD5 | 39e0f3400e32970190bc936515d692c0 |
|
BLAKE2b-256 | 2dcf12480dc3152befdd765246baebf71c7e3906fd4af228d3f46418d48affeb |
Hashes for clang_tidy-17.0.1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b1bec5b1cd5be4b86126b91d17b4f1805af1ff4b4e70b9b6a02c9c7782905fc |
|
MD5 | d45545e6d55cfcb8db9af976c30ba84e |
|
BLAKE2b-256 | 638d07c75542e3bbedf3952b1351be203aaa95a22d0586bd534786e8f5cf680d |