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

Add verify-alpha-spec hook #28

Merged
merged 21 commits into from
May 28, 2024
Merged

Conversation

KyleFromNVIDIA
Copy link
Contributor

@KyleFromNVIDIA KyleFromNVIDIA commented Apr 19, 2024

With rapids-build-backend invoking rapids-dependency-file-generator, we want all dependencies to have the alpha spec (>=0.0..0a0) so that we don't have to use sed to add it. Add a hook to enforce this (and to enforce removing it for production).

@KyleFromNVIDIA KyleFromNVIDIA requested a review from a team as a code owner April 19, 2024 15:10
Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

The implementation looks good. I validated the logic, but didn't check that all the YAML tags were right; I'm trusting the tests to do that since the tests also look correct. It's probably worth getting one more set of eyes on this PR, but it generally looks right to me. We have to figure out where we're going to put this to run in release mode, though.

src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Show resolved Hide resolved
.pre-commit-hooks.yaml Outdated Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
@jakirkham jakirkham requested a review from bdice May 21, 2024 20:22
src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
@vyasr vyasr mentioned this pull request May 23, 2024
3 tasks
pyproject.toml Outdated Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
src/rapids_pre_commit_hooks/alpha_spec.py Outdated Show resolved Hide resolved
test/rapids_pre_commit_hooks/test_alpha_spec.py Outdated Show resolved Hide resolved
test/rapids_pre_commit_hooks/test_alpha_spec.py Outdated Show resolved Hide resolved
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Looks good to me. The only thing left from my side is to check on dask-cuda.

@KyleFromNVIDIA KyleFromNVIDIA merged commit 016086c into rapidsai:main May 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants