jazzband / django-waffle

A feature flipper for Django
https://waffle.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.12k stars 258 forks source link

Resolve flake8 errors #503

Closed dragon-dxw closed 4 months ago

dragon-dxw commented 4 months ago

Resolve flake8 errors

https://stackoverflow.com/questions/57074300/what-is-the-recommended-way-to-break-a-long-if-statement-w504-line-break-after
suggests the recommended approach to breaking long binary statements
is before the operator; we add an exclusion for that, and this
causes an eruption of line-length warnings. We suppress those too.

noqa: F401 is used to square the circle of mypy needing those
imports defined, but flake8 not seeing that they're necessary.