Repository navigation
Style check: Ignore W503 - #1503
Conversation
|
hmm, Travis CI failed on pypy-5.7.1. That's unlikely related to my changes in the |
|
Agreed, I've restarted it but the PyPy failure is unrelated: |
| # ================================================ | ||
| # W503 Line break before binary operator | ||
| # PEP8 is now in favour of line-breaks before binary operators | ||
| W503 |
There was a problem hiding this comment.
Can you put this at line 10 of the file with the other flake8 built in codes please?
There was a problem hiding this comment.
Just add ,W501, to line 10? (and also in the other .flake8 files, of course)
There was a problem hiding this comment.
That'd be fine, thanks.
Looking at this afresh, we could list the non-default ignores explicitly (as they make be good targets for future enforcement).
| # ================================================ | ||
| # W503 Line break before binary operator | ||
| # PEP8 is now in favour of line-breaks before binary operators | ||
| W503 |
There was a problem hiding this comment.
The W* codes are part of the flake8 core, so can you put this first on the list?
| # ================================================ | ||
| # W503 Line break before binary operator | ||
| # PEP8 is now in favour of line-breaks before binary operators | ||
| W503 |
There was a problem hiding this comment.
Can you put this at line 10 of the file with the other flake8 built in codes please?
| # ================================================ | ||
| # W503 Line break before binary operator | ||
| # PEP8 is now in favour of line-breaks before binary operators | ||
| W503 |
There was a problem hiding this comment.
Can you put this at line 9 of the file with the other flake8 built in codes please?
Codecov Report
@@ Coverage Diff @@
## master #1503 +/- ##
==========================================
- Coverage 84.79% 84.79% -0.01%
==========================================
Files 323 323
Lines 49393 49393
==========================================
- Hits 41884 41882 -2
- Misses 7509 7511 +2
Continue to review full report at Codecov.
|
9f5e576 to
838eb68
Compare
838eb68 to
d89243a
Compare
|
@peterjc In |
|
Looks like you could remove that comment line in |
|
Travis CI exited with "137" on the Python 2.7 build, obviously not related to Biopython: |
|
Yep, not sure what that TravisCI failure was, but clearly unrelated to this pull request. Thank you! |
PEP8now recommends to break lines before binary operators. Thus we should ignoreflake8's warning W503: Line break before binary operator.