-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Conversation
A new version of Click broke Black. The new version of Black fixes the issue. See also psf/black#2964
The Black check now passes. CI-only change. No other files changed. Merging. |
- 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.
- 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.
@wenzeslaus don't we need this also in the relbranch80? I see related CI errors in backports... May I backport it? |
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. |
Another solution is to pin the Click version which is suggested in the Black issue I think. |
I see the suggestion |
Likely pip install before or with Black will work. |
This is in 8.2 and the test was dropped from 8.0 branch in 6509178. Removing the backport label. |
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
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