-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
D102 Missing docstring in public method #1963
Comments
Hi I would like to work on this issue! |
@michiboo Please select a module on which you would like to work on and tell us. Maybe as starter one that has not to many missing docstrings? E.g. Bio\Align? If you are not experienced with doscstrings, I would suggest to read PEP 257 beforehand: https://www.python.org/dev/peps/pep-0257/ |
Yes I would work on this module Bio\Align for start! |
Overview: Missing docstring in public method (D102)
+/- 1, I counted the output of flake8 manually ;-) Thank you, we are making progress!
|
I'll work on Bio.SeqIO. |
I'll work on Bio.Crystal. |
I'll work on Bio.Wise. |
@peterjc , about Bio.SearchIO._legacy.ParserSupport.py, is commented as deprecated, would like the DocStrings updated regardless or would you like _legacy removed? |
I'll work on Bio.SCOP.Raf.py |
We still have |
* Added missing docstrings (see github issue #1963) * URL updated * Changed alphameric to alphanumeric
I'll work on Bio.SearchIO._legacy |
I'll work on Bio.PopGen |
Excellent progress, thank you everyone so far 👍
Only eight files left under Bio,
|
I'll work on Bio.Nexus. |
@Ikercasillas please beware that like TogoWS, this is an online module, and things like the search results from Updated (I was thinking of For this issue while doctests would be nice, they are not the priority. |
I'll work on Bio.FSSP |
I'll work on Bio.ExPASy |
Note: Test/test_FSSP.py doen't use unittest, maybe should be part of #1288. |
* Added missing docstrings (see github issue biopython#1963) * URL updated * Changed alphameric to alphanumeric
Excellent progress,
|
I'll work on Bio.Blast |
If you look in one of the former D102 lists, you will see that the two |
True:
vs:
This was from #1997, support for BLAST XML v2. So yes, I missed this during the review. On the bright side, we're fixing these much more quickly than new code is being added - but the sooner we can enforce D102 etc automatically, the better. |
With the above the only thing left is Bio.Entrez which is been look after by @Ikercasillas . Moving on. |
Dear all, I have been reading Bio.Entrez and it's taking me time to understand the whole thing. I require some more time so that I can work on the concerned task, until then kindly let be assigned to me. Thanks. |
@Ikercasillas |
Thanks @MarkusPiotrowski |
@Ikercasillas you've been a bit unlucky -
Or, there are a few non-Entrez examples on #1961 (D101 - missing class docstrings)? Thanks! |
What is meant by public classes? I thought all classes are public. |
I assume a class with a name starting with an underscore would be considered private - we have more of those than I would have guessed:
Some of those are base classes from which a class for public use inherits, others are implementation details not intended for public use. |
Just sharing my observation. I ran flake8 to catch docstring errors and I did get what I expected.
However, as you see, the public method is still missing the name of the method. My version details: When I use pydocstyle, I do get the expected complete result:
|
@arindam31 How is your query related to Biopython? Also your flake8 and pydocstyle output quoted both identify a D102 issue on line 206 of file If you use flake8, it should ignore violations as per any flake8 configuration, in our case we are currently ignoring D102 for the If you use pydocstyle directly (instead of via flake8), any flake8 configuration is ignored. |
Hi Peter. Thanks for your reply. |
Ah, I see what you mean now. I would assume this is deliberate on the part of flake8 - their validation issues only report file and line/column number. |
We currently enforce various code style issues using
flake8
, configured viaBio/.flake8
etc and run automatically on TravisCI via tox. More details here including how to installflake8
and the relevant plugins:https://github.com/biopython/biopython/blob/master/CONTRIBUTING.rst
One of the important docstring checks we currently do not enforce is missing docstrings in methods of public classes.
This issue to to add the remaining missing method docstrings, and then finally turn on the D102 checks by removing them from the ignore list here:
https://github.com/biopython/biopython/blob/master/Bio/.flake8
Currently there are 117 of these remaining following work on issue #1203 etc:
This is fairly simple to fix, so I've tagged is as a "good first issue" and would particularly like to encourage new contributors to try working on this (although code authors are of course also welcome to fix their own omissions).
If you want to volunteer and work on a section, please comment here first to avoid duplication of effort. e.g. "I'll work on Bio/Wise/"
If you want to work on this and #1960 and/or #1961 together, that's fine too.
The text was updated successfully, but these errors were encountered: