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

CI: Update to Black 22.3 with fixed Click #2286

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

wenzeslaus
Copy link
Member

A new version of Click broke Black. The new version of Black fixes the issue.

See also psf/black#2964

A new version of Click broke Black. The new version of Black fixes the issue.

See also psf/black#2964
@wenzeslaus wenzeslaus added bug Something isn't working CI Continuous integration Python Related code is in Python labels Mar 29, 2022
@wenzeslaus
Copy link
Member Author

The Black check now passes. CI-only change. No other files changed. Merging.

@wenzeslaus wenzeslaus merged commit 5561ffe into OSGeo:main Mar 29, 2022
@wenzeslaus wenzeslaus deleted the update-to-fixed-black branch March 29, 2022 13:56
wenzeslaus added a commit to wenzeslaus/grass-addons that referenced this pull request Mar 29, 2022
- A new version of Click broke Black. The new version of Black fixes the issue. See also OSGeo/grass#2286
- New stable version of Black (22.1, 22.3) changes some of the code formatting.
- Targeting Python >=3.7 adds trailing comma after kwargs.
- Strings prefixed by u are replaced by plain strings which are unicode in Python 3.
- Changes applied to all files.
- Python 2 files are now ignored (to be fixed or removed in the future).
- CI workflow synced to core repo.
wenzeslaus added a commit to OSGeo/grass-addons that referenced this pull request Mar 30, 2022
- A new version of Click broke Black. The new version of Black fixes the issue.
- New stable version of Black (22.1, 22.3) changes some of the code formatting.
- Targeting Python >=3.7 adds trailing comma after `**kwargs`.
- Strings prefixed by u are replaced by plain strings which are Unicode in Python 3.
- Changes applied to all files.
- Python 2 files are now ignored (to be fixed or removed in the future).
- CI workflow synced to core repo.
- See also OSGeo/grass#2212 for the update to stable Black in core repo.
- See also OSGeo/grass#2286 for the Click-related update.
@neteler
Copy link
Member

neteler commented Apr 6, 2022

@wenzeslaus don't we need this also in the relbranch80? I see related CI errors in backports... May I backport it?

@neteler neteler added this to the 8.2.0 milestone Apr 7, 2022
@wenzeslaus
Copy link
Member Author

Backporting this would require backporting #2212 first which didn't seem as a backport candidate by itself. Alternatively, you can remove the Black check (delete the black.yml file) from the release branch because unlike the others, it does not check any functionality.

@wenzeslaus
Copy link
Member Author

Another solution is to pin the Click version which is suggested in the Black issue I think.

@neteler
Copy link
Member

neteler commented Apr 8, 2022

I see the suggestion "click <8.1.0" which sounds good to me but is it to be added somehow as a dependency or pip install ... ?

@wenzeslaus
Copy link
Member Author

Likely pip install before or with Black will work.

neteler added a commit to neteler/grass that referenced this pull request Apr 8, 2022
@wenzeslaus
Copy link
Member Author

This is in 8.2 and the test was dropped from 8.0 branch in 6509178. Removing the backport label.

ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
A new version of Click broke Black. The new version of Black fixes the issue.

See also psf/black#2964
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
A new version of Click broke Black. The new version of Black fixes the issue.

See also psf/black#2964
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
A new version of Click broke Black. The new version of Black fixes the issue.

See also psf/black#2964
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CI Continuous integration Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants