-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: Add option to delete preexisting files created by dfg each run #32
Conversation
Note: I have intentionally not modified the pre-commit hook to always include the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with one minor suggestion.
Looks great.
src/rapids_dependency_file_generator/rapids_dependency_file_generator.py
Outdated
Show resolved
Hide resolved
…nerator.py Co-authored-by: AJ Schmidt <[email protected]>
# [1.4.0](v1.3.1...v1.4.0) (2023-02-23) ### Features * Add option to delete preexisting files created by dfg each run ([#32](#32)) ([381a835](381a835)), closes [/github.com/rapidsai/gha-tools/blob/37f3946294647eadf5b60d8229ac396a4d913b59/tools/rapids-dependency-file-checker#L9-L15](https://github.com//github.com/rapidsai/gha-tools/blob/37f3946294647eadf5b60d8229ac396a4d913b59/tools/rapids-dependency-file-checker/issues/L9-L15)
🎉 This PR is included in version 1.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [1.4.0](rapidsai/dependency-file-generator@v1.3.1...v1.4.0) (2023-02-23) ### Features * Add option to delete preexisting files created by dfg each run ([#32](rapidsai/dependency-file-generator#32)) ([10e5118](rapidsai/dependency-file-generator@10e5118)), closes [/github.com/rapidsai/gha-tools/blob/37f3946294647eadf5b60d8229ac396a4d913b59/tools/rapids-dependency-file-checker#L9-L15](https://github.com//github.com/rapidsai/gha-tools/blob/37f3946294647eadf5b60d8229ac396a4d913b59/tools/rapids-dependency-file-checker/issues/L9-L15)
This adds the ability to request that dfg erase any files it previously created before generating new ones. This logic may be used to replace cleanup logic already present in the tests as well as logic currently embedded in the GHA tool currently running dfg. Moving this logic directly into dfg will allow us to use its pre-commit hook as the primary source of truth for how to run it, both locally and in CI.
Contributes to rapidsai/shared-workflows#46