docs: improve NumPy-style docstrings for API reference#451
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #451 +/- ##
==========================================
- Coverage 89.37% 88.22% -1.16%
==========================================
Files 27 27
Lines 1280 1282 +2
==========================================
- Hits 1144 1131 -13
- Misses 136 151 +15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
The failing CI job looks unrelated to the docstring changes (atlas download timeout). I'll continue updating the remaining modules in this. |
|
Yep, we're having ongoing issues with our hosting until we complete the move to AWS. |
alessandrofelder
left a comment
There was a problem hiding this comment.
Thanks @AlgoFoe - this is a great start.
My one general comment is: should we add typehints to the functions' input arguments and return values as we document them? I think this would add a lot of value for not that much work (we need to figure out the types for the docstrings anyway)?
Otherwise, I've made some nitpicky suggestions for improvements :) (You are welcome to disagree with them if you think I got something wrong - this happens (a lot 😁 ))
Co-authored-by: Alessandro Felder <alessandrofelder@users.noreply.github.com>
That's a good idea. Since we're already working out the types, adding type hints alongside the updates could be a nice incremental improvement. I'll have a look and see how much of that can reasonably be incorporated as I work through the modules. |
Cool, let me know what you find. My hope is that it can be part of the docstring writing process itself so we don't have to look at the same code twice :) |
for more information, see https://pre-commit.ci
I've added type hints and addressed the suggested docstring changes and will apply the same approach in future updates after this. |
|
Thanks @AlgoFoe - this looks great. One final (annoying, sorry, but at least simple and very impactful!) requested could you explore using Looking at how |
|
No worries at all, I wasn't aware of |
|
I had a quick look at |
alessandrofelder
left a comment
There was a problem hiding this comment.
Nice one, thanks @AlgoFoe
Description
What is this PR
Why is this PR needed?
What does this PR do?
actor.pyandatlas.py.References
How has this PR been tested?
Is this a breaking change?
Does this PR require an update to the documentation?
Checklist: