-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fix Code Quality CI: checkout action and complex function #320
Conversation
I have also deleted the cache entry called I'll have to do some organizing for the Community Meeting now and can only come back to this later, I'm afraid. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #320 +/- ##
=======================================
- Coverage 78.3% 77.4% -0.9%
=======================================
Files 217 217
Lines 16913 16925 +12
=======================================
- Hits 13254 13116 -138
- Misses 3659 3809 +150
🚀 New features to boost your workflow:
|
I think that is expected. The web display on GitHub itself seems to be erroneous; the In order to debug, you can do what it says here: message-ix-models/.github/workflows/pytest.yaml Lines 4 to 9 in a0d5420
in a commit with a message like "TEMPORARY Run 'pytest' workflow from PR branch"; preserve a link to the successful run; and then rebase the branch to drop the temporary commit. |
Thanks, I had forgotten that was necessary. |
Thanks, looks good to me. should we write a test for the new function? |
We could, but as long as |
78199ee
to
c20d20b
Compare
Even adding the main branch of genno to the additional requirement for mypy does not seem to resolve the errors. I don't really understand what's going on there as all these type hints are very abstract. I could dive in, but I think I should be doing other things instead. So I would opt for applying Unfortunately, there is now another error originating from the latest release of sdmx1, and I don't really have time to look into that, either :/ |
That's something I caused, so I'll step in with a commit to fix it. |
55a3acb
to
b0a33e9
Compare
8b06863
to
45aea12
Compare
I believe I've addressed the issues related to genno and sdmx1, so back to you @glatterf42. |
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.
At the end there were more changes elsewhere than in the water module, that looks fine for me. But have to admit I did not dig much in all the scripts.
You and Paul know what you are doing :)
Work around issue in sdmx1 v2.22.0: v30.Annotation cannot be written to SDMX-ML.
- Use sdmx.model.{common,v21} as appropriate. - Avoid warnings from sdmx1 v2.22 about import of Annotation from .common.
45aea12
to
2540694
Compare
These tests will fail again, at least in part, because they're using the code stored on |
This PR intends to fix a few things about the Code Quality CI:
main
cool_tech()
function to below 11, which is our accepted limit here (@adrivinca, this may serve as a template for the future, if you're interested: I have simply extracted oneif/else
clause and moved that to its own function, following the idea that every function should have one clearly defined task)pre-commit
cache in hopes of it now picking up the latest version of genno, which should fix the mypy errors we've been seeing in the nightly testsHousekeeping:
How to review
PR checklist
Add or expand tests;coverage checks both ✅[ ] Add, expand, or update documentation.Just CI.[ ] Update doc/whatsnew.Just CI.