Repository navigation
Apply black to the Scripts/ directory - #2366
Conversation
|
Grr. I need to switch back to Python 2 locally to work out what I broke under flake8... |
6721803 to
8025fd1
Compare
Codecov Report
@@ Coverage Diff @@
## master #2366 +/- ##
==========================================
+ Coverage 84.95% 85.08% +0.12%
==========================================
Files 323 323
Lines 52690 53051 +361
==========================================
+ Hits 44764 45137 +373
+ Misses 7926 7914 -12
Continue to review full report at Codecov.
|
8025fd1 to
930bb7e
Compare
|
My attempts to modernise this line failed, flake8 under Python 2 was not happy (unsure why, perhaps a plugin fails): |
| -o <testfile> is a BLAST output file. | ||
|
|
||
| """ % sys.argv[0] | ||
| """ |
There was a problem hiding this comment.
This closing triple quote doesn't align with the opening one. not sure if we want them aligned as for instance the parentheses do not align either, black style does that; I have mostly aligned DocStrings but assignments I might have left them like this.
There was a problem hiding this comment.
I haven't explored the rules of the syntax to properly understand how Python interprets the indentation vs which leading spaces are part of the string values. However, this does look like a style judgement - in which case do whatever black does is the easy solution. This is worth discussing for #2008 as a whole.
These were originally hash, indentation, commented code. Black produced odd output, since it likely assumed would have indentation, hash, commented code. Spotted by Sergio in review of pull request #2366.
|
Thank you @svalqui for looking at this 👍 |
This pull request addresses issue #2008.
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.)
@svalqui would you like to review this?