Repository navigation
Unify quotes - prefer double quotes - #2192
Conversation
tiagoantao
left a comment
There was a problem hiding this comment.
On an aestehic level, I would prefer the opposite direction.
But the important point is to have a convention and stick with it. If double quotes, then double quotes it is.
Codecov Report
@@ Coverage Diff @@
## master #2192 +/- ##
==========================================
+ Coverage 84.61% 84.62% +<.01%
==========================================
Files 317 317
Lines 51442 51452 +10
==========================================
+ Hits 43529 43542 +13
+ Misses 7913 7910 -3
Continue to review full report at Codecov.
|
bow
left a comment
There was a problem hiding this comment.
This looks fine ~ and I do also prefer " over '.
|
I think #2008 (comment) can be taken as an approval from @MarkusPiotrowski on standardising on double quotes. |
|
Yes, please do it. |
|
@mdehoon do you want to veto this quote style change, or are you OK with the changes? |
|
I note there is now a merge conflict - I can quite easily redo this and resolve that, if there is agreement on the principle of the changes. |
I am fine either way. |
Using the https://github.com/myint/unify for this: $ unify --quote \" --in-place setup.py Scripts/*.py Scripts/*/*.py Doc/*/*.py Doc/*/*/*.py
Using https://github.com/myint/unify for this: $ unify --quote \" --in-place Tests/*.py Tests/*/*.py
Using https://github.com/myint/unify for this: $ unify --quote \" --in-place BioSQL/*.py
Using https://github.com/myint/unify for this: $ unify --quote \" --in-place Bio/*.py Bio/*/*.py Bio/*/*/*.py $ git checkout Bio/Restriction/Restriction_Dictionary.py Note excluded automatically generated file Bio/Restriction/Restriction_Dictionary.py
Note this possibly surprising behaviour: >>> "\"" '"' This avoids the confusing form.
|
Rebasing... |
|
Thank you all |
This pull request addresses part of the changes which
blackwould include, see #2008. See discussion there.These changes were made using https://github.com/myint/unify but I have deliberately set the author to a dummy values of
unify <[email protected]>to avoid inflating my commit count.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, have runflake8locally, andunderstand 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.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)