-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Black autoformatter #2144
base: main
Are you sure you want to change the base?
Black autoformatter #2144
Conversation
Sure 👍, just flake8 isn't happy with the result yet. 😅 |
c4c99be
to
e4170d5
Compare
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
black is "opinionated" and incompatible with flake8, it's a replacement. I added a new workflow for black and dropped flake8 from checks. sonarcloud is incorrectly unhappy with hardcoded "IP" addresses. It does have some codesmells I sorta agree with but definitely not all. I'll follow up with another PR to address them. |
Fine for me, but we should consider adding pylint then. I think what's going on in SonarCloud is just that all or at least most of those things already existed and were set to ignored, so that they did not show up in the analysis and due to the (whitespace) changes they are now considered new. I just set the security hotspots to "safe", so that it should pass. |
I'll add pylint to run after black. Hopefully they'll be nice to each other 😰 |
Quality Gate failedFailed conditions |
I was curious and the result is mostly quotes. The command used was
black -l 120 -t py38 -t py39 -t py310 -t py311 -t py312
.It can also run as part of the CI. Is it an idea to just have black manage this?