[QGIS-Developer] Problem with flake8 W503 vs. W504
Elstermann, Mike
Mike.Elstermann at itc-halle.de
Fri Jun 26 01:05:03 PDT 2026
Hello everyone,
I’m having a problem with the plugin check using flake8. W503 and W504 seem to contradict each other – the AI thinks so too ;-)
Option 1: if I write:
A
and B
the following error is reported:
W503: line break before binary operator → complains about
Option 2: if I write:
A and
B
the following error is reported:
W504: line break after binary operator → complains about
The AI says that Option 1 is better and that I should ignore W503 and, ideally, relax the rule. What do you think?
Best regards, mikeE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20260626/7f7a9803/attachment.htm>
More information about the QGIS-Developer
mailing list