Added get_callee() which determines the right routine of the return values of get_callees()#2775
Added get_callee() which determines the right routine of the return values of get_callees()#2775
Conversation
|
Thanks @schreiberx, unfortunately, linting is still failing. In case it helps, I have the following pre-push hook setup: |
|
Hi Andy, Thanks for this script. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2775 +/- ##
=======================================
Coverage 99.88% 99.88%
=======================================
Files 357 357
Lines 49652 49708 +56
=======================================
+ Hits 49596 49652 +56
Misses 56 56 ☔ View full report in Codecov by Sentry. |
|
@schreiberx please could you hold off making further changes until I pass it back to you? It's hard to review if code changes underneath me while I'm doing it :-) |
|
These changes are only addressing increasing the coverage to 100% since the codecov bot complained with "Please review." |
arporter
left a comment
There was a problem hiding this comment.
Thanks very much for this Martin. I like the new routine making use of the existing functionality, that seems sensible. I did struggle to get my head around it so you'll see I've requested that some comments be tweaked or added.
As I say in the review, I think a little work on the frontend for those situations where we hit OPTIONAL could really help here.
The only thing I'm really not sure of is the passing around of the list of integers. That seems a bit odd so I'd like to understand why you do that.
I've not looked at the test suite yet (but thanks for addressing the missed lines).
|
Back to @schreiberx :-) |
|
Back to @arporter :-) |
schreiberx
left a comment
There was a problem hiding this comment.
Back to @arporter :-)
|
"codecov/patch — 100.00% of diff hit" => back to @arporter :-) |
arporter
left a comment
There was a problem hiding this comment.
Thanks very much Martin. Pretty much there now bar some tidying.
Also, please could you extend the developer guide to mention the new run_flake8.sh script:
Please edit doc/developer_guide/working_practises.rst and add a new section called "Linting" immediately after the one on "Continuous Integration". This just needs to say that all code is linted by flake8 and must be free from errors to be merged with master. This check is performed automatically by the CI and it can be useful to setup a git hook to do this check before pushing to the repository. An example script is provided in ....
Please could you then refer to this section from the second bullet point in Continuous Integration.
I'll check the integration tests once #2697 is on (as that fixes the NEMO ones).
|
There's the documentation of flake8: Back to @arporter |
|
PS: I wasn't able to reply to "Use name 'd' which doesn't exist", but did the changes in the comments. Thanks for spotting this error. |
|
I don't know what's causing this build problem of build-documentation: I'm not able to reproduce it on my computer. |
arporter
left a comment
There was a problem hiding this comment.
Thanks very much Martin.
This is now ready to be merged :-)
I'll bring it up to master and tweak the two bits of text that I've mentioned in the review. Then I'll run the integration tests. Then I shall merge it...
|
Integration tests have finally finished and were green. Will proceed to merge. |
It does what's in the title.