-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify CMake linting with cmake-format #913
Conversation
Please target 22.02 @vyasr . |
e33a71f
to
8fc9142
Compare
I retargeted 22.02 before I force pushed the rebase, so a bunch of extra reviewer groups were requested that shouldn't be necessary. |
rerun tests |
Removing |
@vyasr if this is ready, go ahead and merge. |
@gpucibot merge |
1 similar comment
@gpucibot merge |
This PR ports some improvements from rapidsai/rmm#913. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Nghia Truong (https://github.com/ttnghia) - Bradley Dice (https://github.com/bdice) - Robert Maynard (https://github.com/robertmaynard) URL: #9723
This PR adds a script to find the cmake-format-rapids-cmake.json file in a standard location and run the cmake-format or cmake-lint programs with that config file. The script fails gracefully when the file cannot be found and is therefore suitable for use as a pre-commit hook in scenarios where no build directory (containing the config file) exists yet. A corresponding pre-commit configuration is added here as well, replacing the old cmake-format hook which did not use the rapids-cmake config file.
Resolves #903.