-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
flake8 upgrade has broken CI #4520
Comments
We'd probably still need to run flake8 to check for things like unused variables unfortunately, but maybe we can just opt into a single check? |
If we want to use black, we can probably just use the |
The PR to fix this has set josepy to an allowed failure since they're having flake8 errors at the moment (and certbot/josepy#39 doesn't fix it for unknown reasons). We should revert that as soon as the downstream is green again. |
I've convinced myself that this isn't a good path right now. To migrate we'd need to:
Running black on every save in your editor, however, is a bad idea since most projects don't use black. So you'd need to either remember to run black manually before commit or write something such that you could have black on save auto-enabled for specific projects. This exceeds my threshold for caring at the moment so status quo it is. |
New flake8 adds a W504 error which prohibits line breaks after binary operators. (See: https://travis-ci.org/pyca/cryptography/jobs/445519395)
We can fix this by ignoring W504, conforming to the new flake8 desire, or blackening the entire codebase and switching to
black --check
for our linting job. The final option would involve one very large PR transforming the whole existing codebase.I'm in favor of switching to black as maximally opinionated code formatters are clearly the best. What do you think @alex?
The text was updated successfully, but these errors were encountered: