Repository navigation
Added docstrings D102 to public method on Bio.Wise - #2005
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2005 +/- ##
==========================================
- Coverage 85.07% 85.07% -0.01%
==========================================
Files 312 312
Lines 50161 50161
==========================================
- Hits 42673 42672 -1
- Misses 7488 7489 +1
Continue to review full report at Codecov.
|
| @@ -116,6 +117,7 @@ def __str__(self): | |||
|
|
|||
|
|
|||
| def align(pair, match=_SCORE_MATCH, mismatch=_SCORE_MISMATCH, gap=_SCORE_GAP_START, extension=_SCORE_GAP_EXTENSION, **keywds): | |||
There was a problem hiding this comment.
Can you break the line after extension=_SCORE_GAP_EXTENSION? (To make it <80 char; we do not enforce this yet)
There was a problem hiding this comment.
That would be nice, but isn't essential for this pull request focused on the docstrings.
| @@ -133,7 +143,7 @@ def align(pair, | |||
| gap_start=None, | |||
| gap_extension=None, | |||
| *args, **keywds): | |||
There was a problem hiding this comment.
This may be a matter of taste, but I would put all the arguments in one or two lines (not exceeding 79 characters).
There was a problem hiding this comment.
Largely personal taste, and we have no compelling reason to change this as part of this pull request.
(Separately I am becoming a fan of the code formatting tool black which would decide this kind of thing automatically)
|
Looks good - Markus is right there are some unrelated style issues we could work on, but nothing which blocks merging your docstring work. Thank you! |
|
A different discussion and yes, offen a matter of personal taste, but I hate what And I find it even more terrible, what it would do to function arguments: |
|
As you say a matter of taste - I had some niggles with black's style, I still don't agree with all the choices, but it has grown on me - and delegating this is liberating (both on solo projects, and likely more so on group projects). I've filed #2008 as a more visible place to have this discussion. |
|
@MarkusPiotrowski , My apologies, I couldn't include your feedback on time I will consider for future PR. |
|
@svalqui No problem, everything's fine! I know it's often hard to add meaninful docstrings, because you need to understand what the code is really doing. I also made this experience several times! |
Squashed commit of biopython#2005.
This pull request addresses issue #1963
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)