Repository navigation
Single .flake8 file for general and folder specific ignores - #2074
Merged
MarkusPiotrowski merged 8 commits intoMay 23, 2019
Merged
Conversation
MarkusPiotrowski
force-pushed
the
single_flake8_file
branch
from
May 22, 2019 21:30
40cf3b8 to
11a5093
Compare
Codecov Report
@@ Coverage Diff @@
## master #2074 +/- ##
=======================================
Coverage 84.87% 84.87%
=======================================
Files 318 318
Lines 50884 50884
=======================================
Hits 43187 43187
Misses 7697 7697Continue to review full report at Codecov.
|
peterjc
reviewed
May 23, 2019
| # flake8-bugbear: B### | ||
| # flake8-commas: C#### (in case installed locally) | ||
| # flake8-black : BLK### (in case installed locally) | ||
| # ================================================= |
Member
There was a problem hiding this comment.
Do you think this handy key should be at the top or the bottom of the file?
Member
|
Looks good (subject to the flake8 bug requiring that repetition), ready for a squash-and-merge unless you want to move the flake8 code table to the top of the file? |
MarkusPiotrowski
force-pushed
the
single_flake8_file
branch
from
May 23, 2019 13:18
11a5093 to
50072ab
Compare
Member
|
Another milestone, thank you 👍 |
This was referenced May 23, 2019
3 tasks done
victorlin
pushed a commit
to victorlin/biopython
that referenced
this pull request
May 30, 2019
…n#2074) * Towards a single .flake8 file * Duplicated per-file-ignores with different paths * Remove folder specific .flake8 files * Changed .travis-tox.ini * Expanded .flake8 file * Alternative .flake8 'styles' * Remove E731 from Bio * Remove D103 from Bio
victorlin
pushed a commit
to victorlin/biopython
that referenced
this pull request
May 30, 2019
See PR biopython#2074 and issues biopython#493 / biopython#2014
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request addresses several style-check-related issues (e.g. #2014, #1188, #493).
The new top-level
.flake8config file makes use of theper-file-ignoreparameter which is available in recentflake8versions. Thus, single, folder-specific.flake8are not longer neccessary.Also, the same config file can be used to run
flake8as git pre-commit hook and from the command line with the Biopython specific style configuration.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.