-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
Regenerate generated files automatically if any are changed #3050
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3050 +/- ##
==========================================
- Coverage 99.63% 99.63% -0.01%
==========================================
Files 121 121
Lines 17839 17848 +9
Branches 3206 3208 +2
==========================================
+ Hits 17774 17782 +8
Misses 46 46
- Partials 19 20 +1
|
Tbh you can probably add uv pre-commit to keep those up to date too, just not have it with updating flags |
I'm afraid I don't quite understand what you mean by this. As far as I am aware, regenerating the generated code files doesn't have anything to do with uv, right? |
Sorry, was referring to the generated requirements files. I guess that could be another PR. |
Making true on #2835 (comment), in this pull request I add a local pre-commit hook that automatically regenerates all the generated files if either the generated file itself or the files used to create them are edited. The only one it doesn't match at the moment is
gen_exports.py
itself, and I could add this if needed.