Skip to content
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=22.3.0 #1427

Merged
merged 2 commits into from May 13, 2022
Merged

Black=22.3.0 #1427

merged 2 commits into from May 13, 2022

Conversation

tisto
Copy link
Sponsor Member

@tisto tisto commented May 12, 2022

No description provided.

@mister-roboto
Copy link

@tisto thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@netlify
Copy link

netlify bot commented May 12, 2022

Deploy Preview for plone-restapi canceled.

Name Link
🔨 Latest commit 9b182b7
🔍 Latest deploy log https://app.netlify.com/sites/plone-restapi/deploys/627cf31296055700084299f8

Copy link
Sponsor Member

@mauritsvanrees mauritsvanrees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need a version less than 22, otherwise Python 2 code may break.

@erral
Copy link
Sponsor Member

erral commented May 12, 2022

Be careful because this change can't be backported to the 7.x.x branch, because in version 22.1.0 the python2 formatting support was removed.

@mauritsvanrees
Copy link
Sponsor Member

Ah right, master is still for 5.2, but not for 2.7. So should be fine here after all.

@@ -5,8 +5,9 @@ zc.buildout =
plone.restapi =

# code analysis
black = 20.8b1
black = 22.3.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With version 22.3.0 of black, no need to pin click = 8.0.4. See psf/black#2966

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to pin the black in a constraints.txt? black is not used in buildout.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know. Thanks! I don't like spreading pins across files and versions.cfg is something that almost all plone packages have, if they follow best practices.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though, on second thought we are about to move away from buildout in the long run, so it might be worth to consider. Will look into it...

@tisto tisto merged commit 781a767 into master May 13, 2022
@tisto tisto deleted the black-22.3.0 branch May 13, 2022 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants