-
Notifications
You must be signed in to change notification settings - Fork 33
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
run black on PR and fix formatting issues in autogenerate_pipeline.py #162
run black on PR and fix formatting issues in autogenerate_pipeline.py #162
Conversation
oh, I just noticed that we actually have a black github action. But why does it run after merge instead of on PRs? :o Should we change
on: pull_request instead? 🤔
|
I was going to ask, I'm pretty sure I already fixed some other issue in the past years, and maybe asked the same, but didn't find anything. |
Ahhh, yeah, now I see. I completely misunderstood you on the other issue last year, sorry! Let's just move this github action to run on PRs instead of post-merge then. I really don't see a good reason why we shouldnt (we check formatting pre-merge on all other repos after all), and it already caused it to have to do fix up PRs at least twice now |
@roypat yeah, I'm going to add a commit to this PR |
Should we wait until this is merged, and then upgrade |
This is just a fix for a formatting issue, so IMHO it doesn't really matter. |
The last commit made `black` unhappy. Let's fix the formatting issues suggested by `black`. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
It's happening quite often to have CI broken on the main branch because we only run `black` on merges, to prevent these problems, let's run `black` or PR as well. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
fc2afb2
to
2df16d8
Compare
Just rebased since our CI on main is still red, @andreeaflorescu @lauralt @sameo @ShadowCurse please, can you take a look? |
Summary of the PR
The last commit made
black
unhappy.Let's fix the formatting issues suggested by
black
and run it on every PR to avoid this issue in the future.Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafe
code is properly documented.