Skip to content

Update contributing for single .flake8 file - #2075

Merged
peterjc merged 4 commits into
masterfrom
peterjc-flake8-hook
May 24, 2019
Merged

peterjc merged 4 commits into
masterfrom
peterjc-flake8-hook

Conversation

@peterjc

@peterjc peterjc commented May 23, 2019

Copy link
Copy Markdown
Member

See PR #2074 and issues #493 / #2014

This pull request addresses issue #...

  • 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. (This acknowledgement is optional.)

Comment thread CONTRIBUTING.rst
we would like all the code to follow the same strict settings.
$ flake8

You can run the reStructuredText checks with the ``restructuredtext-lint``

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Maybe move this after the flake8 hook bit (pending a more sophisticated hook setup)?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would suggest to move everything from line 45-52 (installing flake8) directly below line 36, lines 64-68 (flake8 pre-commit hook) directly below that (with a minor rephrase), and then mention the flake 8 command line access. Finally the other stuff.
Like this:

  1. "We follow PEP-8 and PEP-257"
  2. "You install flake8"
  3. "You set up a pre-commit hook"
  4. "You can also run flake8 independently"
  5. "For docstrings, we are also using...."
    ....

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sounds good - feel free to update this branch if I’ve not, but will try tomorrow

@codecov

codecov Bot commented May 23, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #2075 into master will decrease coverage by 2.58%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2075      +/-   ##
==========================================
- Coverage   84.87%   82.29%   -2.59%     
==========================================
  Files         318      317       -1     
  Lines       50884    50834      -50     
==========================================
- Hits        43187    41832    -1355     
- Misses       7697     9002    +1305
Impacted Files Coverage Δ
Bio/Phylo/CDAOIO.py 5.38% <0%> (-80.27%) ⬇️
Bio/Phylo/CDAO.py 42.85% <0%> (-57.15%) ⬇️
Bio/PDB/mmtf/__init__.py 33.33% <0%> (-55.56%) ⬇️
Bio/PopGen/GenePop/EasyController.py 22.68% <0%> (-54.64%) ⬇️
Bio/PopGen/GenePop/Controller.py 10.42% <0%> (-54.25%) ⬇️
Bio/_py3k/__init__.py 38.09% <0%> (-38.1%) ⬇️
Bio/Restriction/Restriction.py 45.99% <0%> (-37.55%) ⬇️
Bio/Wise/__init__.py 50% <0%> (-30.36%) ⬇️
Bio/Phylo/Applications/_Phyml.py 71.42% <0%> (-28.58%) ⬇️
Bio/Wise/psw.py 48.05% <0%> (-22.08%) ⬇️
... and 40 more

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 da1259a...92df526. Read the comment docs.

@peterjc
peterjc merged commit 8747977 into master May 24, 2019
@peterjc
peterjc deleted the peterjc-flake8-hook branch May 24, 2019 09:26
@peterjc

peterjc commented May 24, 2019

Copy link
Copy Markdown
Member Author

That's nicer, thank you.

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