-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix invalid escape sequences in easyconfigs by using raw strings (r"...") #11149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this change will cause issues with quote_str()
, which can escape backslashes. Raw strings will end up having double backslashes.
If that is the case maybe the function needs a fix? I'm not sure how it is used though so can't tell if it causes problems |
Quick ping here. Still getting those DeprecationWarnings and I think we should fix those before they become errors. And the problem just get worse as more and more ECs get added by copying those "mistakes" |
d40cbe3
to
94913e9
Compare
Rebased again. What is the status here @boegel ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfgrimm I'm not sure your comment applies here as this is only a refactoring to fix the style/warnings not changing or introducing anything Anyway can this and #11148 be reviewed and merged please so we can enable flake8 on CI and avoid reintroducing the issues I already fixed? I just rebased this, resolved the conflict and checked that |
94913e9
to
c530b1c
Compare
c530b1c
to
df144aa
Compare
easybuild/easyconfigs/v/vcflib/vcflib-1.0.2-GCC-9.3.0-Python-3.8.2.eb
Outdated
Show resolved
Hide resolved
easybuild/easyconfigs/s/SciPy-bundle/SciPy-bundle-2021.05-gomkl-2021a.eb
Outdated
Show resolved
Hide resolved
3445d2d
to
b67c870
Compare
I extracted the shovill changes into a separate PR and added a CI check to avoid reintroducing this. That can be extended once the other flake8-related PRs have been merged. |
…asyconfigs into flake8_ecs_string
Test report by @lexming |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Going in, thanks @Flamefire ! |
Tests rolled-back to normal state in #17304 |
Similar to #11148 this handles the invalid escape sequences by using raw strings for all ECs
I.e. it fixes the
<string>:25: DeprecationWarning: invalid escape sequence \$
warnings when parsing an EC and the related flake8 warningThis is clean with
flake8 --select W605 --filename '*.eb' -j5
now