MAINT: fix invalid escape seqs#2885
Conversation
|
Hello @tylerjereddy! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2020-10-02 21:02:27 UTC |
5730c5a to
1ef58c6
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2885 +/- ##
========================================
Coverage 93.05% 93.05%
========================================
Files 186 186
Lines 24609 24609
Branches 3187 3187
========================================
Hits 22900 22900
Misses 1661 1661
Partials 48 48
Continue to review full report at Codecov.
|
|
Maybe you could add an entry in the CHANGELOG? |
|
hmm, I could, nothing user-facing though? Perhaps I could turn those warnings into errors, and then it would warrant an entry and prevent "regressions." |
|
I like your idea of preventing regressions – please do! |
|
Ok, see the second commit for the PR revisions based on feedback |
|
Well... that's now a bottomless pit of fixing strings, and least when I try it locally... I started and will push updates but that might be a lot of work. |
|
Hmm, maybe not worth too much time for now then. I wonder why I only caught cases in the test suite proper when I did it locally. Maybe the fresh rebuild in CI on top of the site.cfg change or something. |
|
I have a fair amount done... but just ran into other minor things. |
bd38a09 to
1b23d48
Compare
|
Now passes locally. Sorry, I force-pushed without too much thinking. |
|
I think I'll want to merge a working develop into this one before merging, just to see that the CI really passes. |
|
@jbarnoud can I please leave it to you to shepherd the PR to completion? Ping me if you need me to do anything else. |
|
No idea why sphinx is suddenly complaining in https://travis-ci.com/github/MDAnalysis/mdanalysis/jobs/372482678 sigh... |
* invalid escape sequences in `str/bytes` are deprecated in newer versions of Python: https://bugs.python.org/issue27364 * fix the various `DeprecationWarning: invalid escape sequence \..` warnings emitted by our full test suite, mostly by using raw strings `r'...'` to allow use of internal `\` * full test suite warning count drops slightly from 30,298 to 30,276
* invalid escape sequence usage is now treated as an error in our full test suite to prevent regressions * CHANGELOG update
- mostly convert strings to raw strings - removed a number of embedded newlines from raw strings (because they do not work in raw strins as expected) - fixed heading of MDAnalysis/core/topologyattrs.py - fixed reST in Janin
330b38d to
d83c782
Compare
|
Fixed the merge conflict, rebased against develop, consolidated commits (so that it can just be merged), and fixed the docs so that they build. Locally
|
|
This is now looking good and the lower diff coverage comes from changing strings in parts of files that haven't been tested before. |
|
Thanks, this turned out to be more work than I could handle on a short timescale. |
invalid escape sequences in
str/bytesare deprecatedin newer versions of Python: https://bugs.python.org/issue27364
fix the various
DeprecationWarning: invalid escape sequence \..warnings emitted by our full test suite, mostly by using raw strings
r'...'to allow use of internal\for strings targeted for regular expressionsand for docstrings that use
\for diagrams and other thingsfull test suite warning count drops slightly from 30,298 to 30,275 in my Python
3.8 venv
PR Checklist