-
Notifications
You must be signed in to change notification settings - Fork 28
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
Added get_callee() which determines the right routine of the return values of get_callees() #2775
base: master
Are you sure you want to change the base?
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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2775 +/- ##
=======================================
Coverage 99.87% 99.87%
=======================================
Files 356 356
Lines 49449 49500 +51
=======================================
+ Hits 49385 49440 +55
+ Misses 64 60 -4 ☔ 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." |
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.
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).
bin_git/run_flake8.sh
Outdated
@@ -0,0 +1,43 @@ | |||
#!/bin/bash |
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.
Thanks for adding this. I think it should live in utils/example_git_hooks/
. If the plan is that a user simply alters the githook to call this script then please say that in L6-8. Alternatively, we could provide it as a drop-in hook that a user would just copy to .git/hooks/pre-push
. I don't mind either way but please update the comment. We also need to document this hooks existence in the Developer Guide. I think we need a brief new section under https://psyclone-dev.readthedocs.io/en/latest/working_practises.html#working-with-psyclone-from-github - possibly "git integration" or something? This could be cross-referenced from the section that mentions linting in the Continuous Integration part.
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.
For me, that's not directly git related - although you used it as git hooks.
It's about good coding styles and scripts that help one ensure this.
In addition, this can also be used by git and the CI system.
Therefore, I'd just put this directly into the ./utils folder. I also added a run_pytest_cov.sh
script.
Back to @schreiberx :-) |
Back to @arporter :-) |
It does what's in the title.