Skip to content

Single .flake8 file for general and folder specific ignores - #2074

Merged
MarkusPiotrowski merged 8 commits into
biopython:masterfrom
MarkusPiotrowski:single_flake8_file
May 23, 2019
Merged

MarkusPiotrowski merged 8 commits into
biopython:masterfrom
MarkusPiotrowski:single_flake8_file

Conversation

@MarkusPiotrowski

@MarkusPiotrowski MarkusPiotrowski commented May 22, 2019 •

Copy link
Copy Markdown
Contributor

This pull request addresses several style-check-related issues (e.g. #2014, #1188, #493).
The new top-level .flake8 config file makes use of the per-file-ignore parameter which is available in recent flake8 versions. Thus, single, folder-specific .flake8 are not longer neccessary.
Also, the same config file can be used to run flake8 as 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.rst file and understand that AppVeyor and
    TravisCI will be used to confirm the Biopython unit tests and flake8 style
    checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed.

@codecov

codecov Bot commented May 22, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #2074 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2074   +/-   ##
=======================================
  Coverage   84.87%   84.87%           
=======================================
  Files         318      318           
  Lines       50884    50884           
=======================================
  Hits        43187    43187           
  Misses       7697     7697

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49892b2...50072ab. Read the comment docs.

@MarkusPiotrowski
MarkusPiotrowski requested a review from peterjc May 23, 2019 06:21
Comment thread .flake8 Outdated
# flake8-bugbear: B###
# flake8-commas: C#### (in case installed locally)
# flake8-black : BLK### (in case installed locally)
# =================================================

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think this handy key should be at the top or the bottom of the file?

@peterjc

peterjc commented May 23, 2019

Copy link
Copy Markdown
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
MarkusPiotrowski merged commit da1259a into biopython:master May 23, 2019
@peterjc

peterjc commented May 23, 2019

Copy link
Copy Markdown
Member

Another milestone, thank you 👍

peterjc added a commit that referenced this pull request May 23, 2019
@peterjc peterjc mentioned this pull request May 23, 2019
3 tasks done
@MarkusPiotrowski
MarkusPiotrowski deleted the single_flake8_file branch May 23, 2019 16:13
peterjc added a commit that referenced this pull request May 24, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants