After upgrading C3I Jenkins slave pod from Fedora 28 to 29, C3I pipeline builds for waiverdb fails with a Flake8 warning: W504 line break after binary operator.
This happens because of a updated PEP 8 rule, which recommends that line breaks should occur before the binary operator because it keeps all operators aligned. However both W503 and W504 are enforced when all warnings are configured.
This pull-request eliminates the warning by following the new rule and ignoring W503.
@lholecek @ralph Can you take a look?
+1 I don't have strong feelings on this style one way or another, and flake8 was ridiculous to try to enforce both. This solution looks reasonable.
:thumbsup:
Looks good
Commit 234455f6 fixes this pull-request
Pull-Request has been merged by gnaponie
After upgrading C3I Jenkins slave pod from Fedora 28 to 29,
C3I pipeline builds for waiverdb fails with a Flake8 warning:
W504 line break after binary operator.
This happens because of a updated PEP 8 rule, which
recommends that line breaks should occur before the binary operator
because it keeps all operators aligned.
However both W503 and W504 are enforced when all warnings are configured.
This pull-request eliminates the warning by following the new rule and ignoring W503.