Skip to content
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

remove flake8, clang tools from wholegraph CMake #103

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

jameslamb
Copy link
Member

wholgraph's CMake has some configuration to run flake8, clang-tidy, and clang-foramt via CMake.

This proposes removing it.

Notes for Reviewers

Risks to doing this?

I don't think any.

flake8 and clang-format configs are unnecessary, as those are already run via pre-commit here:

- repo: https://github.com/PyCQA/flake8

- repo: https://github.com/pre-commit/mirrors-clang-format

The clang-tidy support must not actually be used today... it refers to a script that doesn't exist in this repo:

add_custom_target(clang-tidy
python scripts/run-clang-tidy.py

This code had been in the wholegraph repo for a while... it was added in June 2023 (rapidsai/wholegraph#24) and then never modified again.

Benefits of doing this?

Similar to #102, I'm putting up PRs like this because I'm planning to attempt to add libwholegraph wheels, and want to simplify the wholegraph / pylibwholegraph CMake as much as possible before doing that, to reduce the implementation and reviewing effort.

@jameslamb jameslamb added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jan 6, 2025
Copy link

copy-pr-bot bot commented Jan 6, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@jameslamb
Copy link
Member Author

/ok to test

@@ -127,9 +127,6 @@ message(VERBOSE "PYLIBWHOLEGRAPH: Enable detection of conda environment for depe
##############################################################################
# - Compiler options ---------------------------------------------------------

# this is needed for clang-tidy runs
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a cleanup, not a behavior change... this option is already set to ON earlier in the same file.

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

@jameslamb jameslamb changed the title WIP: remove flake8, clang tools from wholegraph CMake remove flake8, clang tools from wholegraph CMake Jan 6, 2025
@jameslamb jameslamb marked this pull request as ready for review January 6, 2025 18:04
@jameslamb jameslamb requested review from a team as code owners January 6, 2025 18:04
Copy link
Contributor

@linhu-nv linhu-nv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for cleaning this up. seems good to me :)

@jameslamb
Copy link
Member Author

Thanks @linhu-nv ! I might have one or two more coming like this, appreciate your help and patience 😊

@jameslamb
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit bb81a18 into rapidsai:branch-25.02 Jan 7, 2025
83 checks passed
@jameslamb jameslamb deleted the cmake-cleanup branch January 7, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants