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-15.0.2-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d03a4f6eae70562b354a38307cc917e465d85b66d1da1c905b52fda48942b5e1 |
|
MD5 | 1dbe2661ba2a384feba9d97d7f04523b |
|
BLAKE2b-256 | 9957cfc6c48cbb68947dc822acc65f6e3358b1615fc632ebd457bde7de39b0f0 |
Hashes for clang_tidy-15.0.2-py2.py3-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 360ccbd68a540d072ee3fef8979775bf09ea2bbd7b844b0ce7a4e3f9095e38f4 |
|
MD5 | 13bed9f01c11a6f81673fec71f736633 |
|
BLAKE2b-256 | 4794d179424887a439379c3ae55d26b77fe333584fe0ce68d65c7fc2fee90c89 |
Hashes for clang_tidy-15.0.2-py2.py3-none-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bafb0fb5e6f1c70de752937bb1dd794a02a363c8a8b176dde9aa0c7631134b4 |
|
MD5 | 59a0bb81b6a01f3227869b483df00d36 |
|
BLAKE2b-256 | 83a072b142e5c4ca12da24216ed7e7b0d4eeef0941696d66dff0bec6cba406d1 |
Hashes for clang_tidy-15.0.2-py2.py3-none-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a36343558a44244f3d9f206bc0cb8c73ef3f84023b9ec16c4f92bba0cd88a4a |
|
MD5 | ec69ff759fb5e822b0bd673fcaada65c |
|
BLAKE2b-256 | ba26717c9ba82720e34af738053b3475fee268f03be16c0735c22637610601c6 |
Hashes for clang_tidy-15.0.2-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a9b0a7d7718f6205ff3b4e3c38238a913640d1ebedbfa166d103c5825811016 |
|
MD5 | 44ece93e806d0eb02764683839ffe3d2 |
|
BLAKE2b-256 | 90d41884eb11d9dfa782e09c9ca80caa0eeb9de5a6a07ac041ee9b65eb27b2fd |
Hashes for clang_tidy-15.0.2-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ad85ab69beddeaa4fa0e65d6f9b047fb323a6e25f4f5a3d9beba1ffb343862 |
|
MD5 | b7941ad393afed6e0886c86e861c77c5 |
|
BLAKE2b-256 | 5180e9ba4aa9f4dd8f8f09a459f5b0912ad62ba6a1a954e3405e240b57b444fc |
Hashes for clang_tidy-15.0.2-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bf238f8cbdde37ba98e61865148b8f74dfcc29cc34a46a8e4e82f1843845214 |
|
MD5 | b9e4dd878fae2a9898bd00b01b4280f5 |
|
BLAKE2b-256 | 83df1810d1e476c3fe8c853beb6db70cf294c389812384a3138c78e2ebc26991 |