-
Notifications
You must be signed in to change notification settings - Fork 20
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 flake8 B907 errors #279
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.
Looks fine to me 👍
3332de9
to
4739921
Compare
Codecov ReportBase: 98.88% // Head: 98.88% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #279 +/- ##
=======================================
Coverage 98.88% 98.88%
=======================================
Files 56 56
Lines 2328 2328
=======================================
Hits 2302 2302
Misses 26 26
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
FWIW, I would be fine with disabling this check. We often want/need a specific kind of quote and formatting and Alternatively, we might want to use |
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.
Looks fine for me 👍
@giffels Just a heads up that @eileen-kuehn is waiting (without rushing) whether you would want to change the PR in response to my comment above. |
I will change the pull request tomorrow. I think I am going to ignore B907 then. |
713cfa3
to
5d6327c
Compare
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.
Looks good to me, go for it 👍
5d6327c
to
af0dd8f
Compare
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.
Looks fine to me. 👍
Go ahead
In recent flake8 tests it complains (B907) about three code lines using the mechanism
f'Test="{bla}"'
to put the value of a variable into double quotes to be executed in a shell. The documentation suggest to change this intof"Test={bla!r}"
, which leads to a slightly different outputTest='value'
instead ofTest="value"
. However, this does not matter for the execution of the concerned commands in a shell.For the third occuarance I decided to ignore that error, since it mimics the output of a moab command in a unittest, which uses double quotes.