psf/black repo issues and pull requests
Remove unnecessary parentheses from `except` clauses #2939 [jpy-git]
Description Closes #2937. As described in the issue we want to remove redundant parentheses from except...
change some numeric behavior #469 [JelleZijlstra]
Closes #467.
Overhaul diff-shades integration to fail on stable changes and preview changes for all projects #2951 [ichard26] skip news C: maintenance
Description Now PRs will run two diff-shades jobs, "preview-changes" which formats all projects with preview=True,...
Remove underscores in numeric literals #2957 [jpy-git] R: rejected T: design
Is your feature request related to a problem? Please describe. I've just learned that this a = 1_2_3_4_5.6_7_8_9 is...
Long with statements are not broken into several lines #664 [mhham] T: design F: parentheses S: accepted C: target version
Long with statements are not not broken into several lines: Something like this should be OK, according to PEP8 with...
Remove unnecessary parentheses from `with` statements #2926 [jpy-git]
Description Closes #2921. Aims to remove redundant parentheses from with statements: I currently have one failing...
Convert `index.rst` and `license.rst` to markdown #2852 [gunungpw] skip news
Description resolve #2840 Rename and convert index.rst and license.rst to index.md and lisence.md. fix ref link...
Comments between fmt:on/off are reformatted #1245 [marcelm] T: bug F: comments F: fmtoff
This code: # fmt: off #nospace # twospaces # fmt: on is changed to: # fmt: off # nospace # twospaces # fmt: on I...
Add a --single-quotes option to prefer single quotes #633 [davvid]
Now there are no excuses not to use black. Fixes #594
Pin click between 8.0.0 and 8.0.4 as 8.1.0 drops Python 3.6 #2965 [ichard26]
Description Checklist - did you ... Add a CHANGELOG entry if necessary? Add / update tests if necessary? Add...
Remove usage of _unicodefun module from dependency: 'click' #2967 [bcrant]
Description The _unicodefun module has been removed from the click library. In addition, it is also not actively...
Prepare release 22.3.0 #2968 [JelleZijlstra] skip news
Bug using a previous click version #2969 [nidhaloff] T: bug R: duplicate C: installation / packaging
Describe the bug It looks like black is depending on click>=1.8.0, However, click changed the API in the new version...
black fails due to _unicodefun #2963 [NAThompson] T: bug R: duplicate C: installation / packaging
Describe the bug On Centos 7: WARNING: You are using pip version 21.2.3; however, version 22.0.4 is available. $...
Correctly handle fmt skip comments without internal spaces #2970 [siuryan]
Description Hi, first time contributor here! This PR fixes #2917 . The issue was that fmt skip comments were being...
Add improved docstring processing #2885 [TomFryers]
Description One of the things discussed in issue #144 was quote placement. Reading through the discussion, there...
Address breakage of our test suite *before* aiohttp 4.0.0 goes out of alpha #2971 [ichard26] help wanted C: maintenance
So thanks to the various dependency related fires we've had lately, I've created ichard26/black-deps-ci which runs...
ImportError: cannot import name 'echo' from 'click' (unknown location) #2634 [salmanhiro] T: bug C: dependencies C: crash S: awaiting response
I'm using Python 3.8.9 with conda environment and resulted in this problem Traceback (most recent call last): File...
JelleZijlstra: @arturomf94 you're using an old version of Black.
JelleZijlstra: "old" meaning more than 5 hours ago: No, much older than that.
arturomf94: Tbf, I think I am using and older one! I believe it's black==20.8b1.
dahluwalia-ag: Changing to version 22.3.0 has solved the problem... thanks!
JKCai: thanks for the almost live chat and solution. Save me from troubleshooting my environment.
Fix _unicodefun patch code for Click 8.1.0 #2966 [JelleZijlstra]
Fixes #2964
JelleZijlstra: Merging now because I'm pretty sure this isn't going to break PyPy on MacOS only.
tjeck97: breaks black==19.10b0 ImportError: cannot import name '_unicodefun' from 'click'
JelleZijlstra: @tjeck97 black 19.10b0 is old. Please upgrade.
tjeck97: @tjeck97 black 19.10b0 is old. Please upgrade. well now i'm forced to 😅 though pinning...
vhosakot: This PR was released in version 22.3.0. can confirm this issue is fixed in black 22.3.0.
Incompatible with click 8.1.0 (ImportError: cannot import name '_unicodefun' from 'click') #2964 [stumpylog] T: bug C: installation / packaging
Please use Black 22.3.0 which was just released to fix this issue or pin Click to 8.0.0, 8.0.1, 8.0.2, 8.0.3, or...
ProGamerGov: This causing black to fail when run on Google Colab right now as well.
Edwardx89: Is it me or does 22.3.0 still did not fix it? Using black==22.3.0 with click==8.1.0
JelleZijlstra: You're running an ancient version from back when the whole thing was in black.py.
Edwardx89: @scasagrande Ahhh you are right!!! Sorry! It does work :)
siaccarino: It is still not working: pip list black 22.3.0 click 8.1.0 ...
mjpieters: It is still not working: pip list black 22.3.0 click 8.1.0 ...
AqeelAT: Github action still fails. I tried: - name: Black Format Check uses:...
Black should format docstring line length #2865 [danohn] T: design F: strings / docstrings F: linetoolong F: linebreak
Describe the style change Black should format docstring line length. Examples in the current Black style def...
JelleZijlstra