Repository navigation
Comply with flake8-comprehensions upgrade - #2342
Conversation
peterjc
left a comment
There was a problem hiding this comment.
Assuming no test failures, this looks good - and using list(expr) is shorter than [x for x in expr] too. I'll have to get used to this as I probably over-use list comprehensions myself.
|
Hmm, All three are in |
Codecov Report
@@ Coverage Diff @@
## master #2342 +/- ##
==========================================
+ Coverage 84.94% 84.95% +0.01%
==========================================
Files 323 323
Lines 52690 52690
==========================================
+ Hits 44756 44765 +9
+ Misses 7934 7925 -9
Continue to review full report at Codecov.
|
|
Thanks Peter, i fixed those failures, I am confused about this one though, looking at the code, might be a false positive? I also meant to say, this is the cause of the Travis failure in #2341 |
|
It looks legitimate to me, the tuple is expanded with an additional entry: features = [(start, end, strand, label, color)
for (start, end, strand, label) in features]I don't see any |
|
The build no longer fails with Travis because i added I'm now convinced this is an issue with the flake8-comprhensions plugin, I can reproduce this like: EDIT: i found the relevant bug report for this adamchainz/flake8-comprehensions#198 |
|
Good work. |
The upgrade of flake8-comprehensions (in particular see the changes for version 3.1.0) includes some new checks:
https://github.com/adamchainz/flake8-comprehensions/blob/master/HISTORY.rst
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.)