Skip to content

Fix same line implicit string concatenation from black - #2358

Closed
peterjc wants to merge 1 commit into
biopython:masterfrom
peterjc:black_isc
Closed

peterjc wants to merge 1 commit into
biopython:masterfrom
peterjc:black_isc

Conversation

@peterjc

@peterjc peterjc commented Nov 27, 2019

Copy link
Copy Markdown
Member

There is an open issue on black for fixing this:
psf/black#26 (comment)

These specific cases were spotted while testing a new flake8 plugin:
https://github.com/keisheiled/flake8-implicit-str-concat/

Once that plugin as matured a little, we should start using it on our continuous integration testing (at least until the black issue is addressed).

  • 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, have run flake8 locally, and
    understand 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.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

@codecov

codecov Bot commented Nov 27, 2019

Copy link
Copy Markdown

Codecov Report

Merging #2358 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2358   +/-   ##
=======================================
  Coverage   84.95%   84.95%           
=======================================
  Files         323      323           
  Lines       52690    52690           
=======================================
  Hits        44764    44764           
  Misses       7926     7926
Impacted Files Coverage Δ
Bio/SeqIO/SffIO.py 86.27% <ø> (ø) ⬆️
Bio/SeqIO/InsdcIO.py 93.08% <ø> (ø) ⬆️
Bio/bgzf.py 92.42% <0%> (ø) ⬆️

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 7844bca...28364ed. Read the comment docs.

@peterjc

peterjc commented Nov 28, 2019

Copy link
Copy Markdown
Member Author

Now covered in #2359 along with using a new flake8 plugin to enforce this.

@peterjc peterjc closed this Nov 28, 2019
@peterjc
peterjc deleted the black_isc branch November 28, 2019 17:07
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.

1 participant