-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
DOC: Docstring script to not require ending period for bullet points #25786
Conversation
Codecov Report
@@ Coverage Diff @@
## master #25786 +/- ##
==========================================
+ Coverage 91.26% 91.26% +<.01%
==========================================
Files 172 172
Lines 52965 52965
==========================================
+ Hits 48337 48338 +1
+ Misses 4628 4627 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25786 +/- ##
==========================================
- Coverage 93.02% 92.04% -0.99%
==========================================
Files 182 180 -2
Lines 50257 50713 +456
==========================================
- Hits 46750 46677 -73
- Misses 3507 4036 +529
Continue to review full report at Codecov.
|
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.
Please add test(s)
@EdAbati as mentioned if you can add tests will take a look |
Hi @WillAyd , sorry for the delay. I just added a couple of tests. Thank you very much |
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.
Tests look good! I think the implementation can be simplified / made clearer
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.
@EdAbati this is moving in the right direction but still needs to be simplified. Anything which isn't explicitly tested and unnecessary conversion of objects to different container types needs to be removed
can you merge master |
Hi @WillAyd, |
Thanks for the ping and sorry forgot about this. I’m traveling the next two weeks but will try to fit another review round in then.
…Sent from my iPhone
On Jun 18, 2019, at 5:47 PM, EdAbati ***@***.***> wrote:
Hi @WillAyd,
I was wondering if you had the chance to have a look at this,
Is there anything I should improve/change?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
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.
Tests look great! Just want to keep simplifying the implementation a bit but almost there.
Thanks for sticking with this
@EdAbati can you rebase |
@EdAbati CI should be fixed now if you can merge master again. |
Hi @EdAbati I've been on vacation the past few weeks so haven't looked in detail. Back in a few days will review within the next week |
what is status here? |
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.
Cool thanks - this is starting to look simpler. Right now I don't think 100% accurate but an improvement over where we are, so might just move forward with it and leave rough edges to a follow up.
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.
Sorry for the late review @EdAbati, didn't see this before. Can you fix the conflicts and have a look at the comments.
The PR I mentioned has been merged already, you can open this PR in numpydoc now. |
git diff upstream/master -u -- "*.py" | flake8 --diff
This PR tries to solve the issue #25461 .
I thought that the validator should check that the last line of the parameter description is a part of a bullet point before raising the error PR09.
In order to do that, I had to add an extra method in the Docstring class that return a parameter description line by line (in a list). This is because Docstring.parameter_desc() returns the description as 1 string.
Please let me know how I can improve this or if I did not consider something.