Repository navigation
Black on several miscellaneous files - #2498
Conversation
|
@svalqui would you like to review this? |
|
Realise this overlaps with my own older pull request #2466 |
|
The changes made on #2466 should be identical, so with that applied, git ought not to find any merge conflicts... |
Codecov Report
@@ Coverage Diff @@
## master #2498 +/- ##
=======================================
Coverage 84.77% 84.77%
=======================================
Files 322 322
Lines 52437 52437
=======================================
Hits 44456 44456
Misses 7981 7981
Continue to review full report at Codecov.
|
| """ | ||
| warnings.warn("""\ | ||
| warnings.warn( | ||
| """\ |
There was a problem hiding this comment.
I think this slash is not needed.
There was a problem hiding this comment.
Actually it is (surprisingly) important if you want to avoid a leading newline in the string, see discussion on #2369.
However, in this case there is no strong reason to use triple quotes - I'll tweak this, so I'm glad you queried this.
| "U": 324.035867 | ||
| "U": 324.035867, | ||
| } | ||
|
|
There was a problem hiding this comment.
The current style for weights is even, after black monoisotopics don't fit in one line, given that is minor I think we just leave black do the styling.
There was a problem hiding this comment.
Black added the trailing comma, which other people recommend anyway in lists and dictionaries as it reduced the diff if you later add more entries.
There was a problem hiding this comment.
|
Only found an slash that could be removed, the rest seems fine to me. |
|
Thanks you for looking at this so carefully. |
This pull request addresses in part issue #2008, targeting small modules without an contentious changes.
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, have runflake8locally, andunderstand that AppVeyor and TravisCI will be used to confirm the Biopython unit
tests and style checks 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.)