psf/black repo issues and pull requests
Sensible minimum number of char width "won back" before indentation used. #2954 [mangelozzi] T: design F: linebreak S: needs discussion
Describe the style change Black indents items in brackets to help fit more on the screen, however in some cases, one...
Brackets around lambda expressions in functions #2958 [jpy-git] T: design F: parentheses
Is your feature request related to a problem? Please describe. At the moment black doesn't seem to have any strong...
Avoid split strings in a single line. #2956 [mvaled] T: design F: strings / docstrings
Describe the style change Black should merge split strings that fit into a single line. Examples in the current...
Remove redundant brackets from `except` clause #2937 [jpy-git] T: enhancement F: parentheses S: accepted
Is your feature request related to a problem? Please describe. The except clause can accept a parenthesised tuple of...
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. $...
Fix _unicodefun patch code for Click 8.1.0 #2966 [JelleZijlstra]
Fixes #2964
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...
Incompatible with click 8.1.0 #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 :)
mangelozzi: In the original example the line does actually become shorter, although it's a marginal...
mangelozzi: come up with examples where this rule would make formatting worse. I think my objections would...
mangelozzi: f([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]) Settin...
TomFryers: I had a look for cases of this in some of my code, and I think long string literals are by far...