diff --git a/Makefile b/Makefile index cd8ab79..dc22fe7 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ clean: ## remove stuff we don't need rm -fr build/ dist/ src/*.egg-info rm -fr .*_cache/ rm -f out_*.json save_*.json + rm -f docs/black_digest.json requirements: ## install development environment requirements pip install -r dev-requirements.txt diff --git a/docs/black_digest.html b/docs/black_digest.html index b949eda..dc8d256 100644 --- a/docs/black_digest.html +++ b/docs/black_digest.html @@ -78,6 +78,9 @@ .homerepo { color: #888; } + .old > p { + color: #888; + } .footer { color: #888; font-style: italic; @@ -171,840 +174,860 @@
diff-shades: force --preview for PRs and pushes #2891 - [ichard26] - - skip news - C: maintenance - -
Description -This will let us gauge the impact of a change ahead of time. -Checklist - did you ... - - Add a CHANGELOG...
Bump mypy, flake8 and pre-commit-hooks in pre-commit #2922 - [ichard26] +
Sensible minimum number of char width "won back" before indentation used. #2954 + [mangelozzi] - skip news - C: maintenance + T: design + F: linebreak + S: needs discussion -
Description -It's been a while since I last ran pre-commit autoupdate. -Checklist - did you ... - - Add a CHANGELOG...
Black stops looking for config at first pyproject.toml file even if there's no black section in it #2863 - [slafs] +
Brackets around lambda expressions in functions #2958 + [jpy-git] - T: enhancement - C: command line / config + T: design + F: parentheses -
Disclaimer: I was hesitant whether I should report this as a bug or rather a "Feature request". -Describe the bug +
Is your feature request related to a problem? Please describe. +At the moment black doesn't seem to have any strong...
-
-
-
- jaklan: I also find it pretty problematic in a monorepo setup:
+ Avoid split strings in a single line. #2956
+ [mvaled]
-pre-commit hook doesn't work as you can...
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...
dont skip formatting #%% #2919 - [MarcoGorelli] +
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,...
Mark Felix and Batuhan as maintainers #2794 - [ichard26] - - T: documentation - skip news - -
Description -Y'all deserve it :) -@felix-hilden and @isidentical please check that I chose the right email! -Checklist...
INTERNAL ERROR: Black produced different code on the second pass of the formatter. #2923 - [RandyMcMillan] +
Remove underscores in numeric literals #2957 + [jpy-git] - T: bug - C: unstable formatting - R: outdated + R: rejected + T: design -
https://github.com/RandyMcMillan/x20bf/runs/5547164070?check_suite_focus=true -error: cannot format...
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...
+
- JelleZijlstra: Could you extract the file and give a self-contained repro case?
Primer: Fix RuntimeError with a closed Event Loop with subprocesses #2193 - [cooperlees] - - T: bug - C: maintenance - -
From time to time it seems pandas causes an EventLoop RuntimeError error. -Let's debug and see if there is something...
Primer deprecation plan #2821 - [JelleZijlstra] +
Long with statements are not broken into several lines #664 + [mhham] - C: maintenance + T: design + F: parentheses + S: accepted + C: target version -
I removed black-primer from CI in #2809 because it was causing annoying and useless CI failures, but kept the code...
Long with statements are not not broken into several lines: +Something like this should be OK, according to PEP8 +with...
Farewell black-primer, it was nice knowing you #2924 - [ichard26] +
Remove unnecessary parentheses from `with` statements #2926 + [jpy-git] - C: maintenance - +
Description -Enjoy your retirement at https://github.com/cooperlees/black-primer -Resolves #2821 and closes...
-
-
+
- cooperlees: Good bye old warrior. You helped bring back black development to life!
Remove power hugging formatting from preview #2928 - [Shivansh-007] - - skip news - -
+
- Shivansh-007: Could any of the maintainers add
- skip news
+ + ichard26: This has been discussed in #664 and #1948 FYI.
-- JelleZijlstra: It thinks this code is unreachable because there's only one enum member.
+ github-actions: diff-shades reports zero changes comparing this PR (639a2e4) to main (f239d22). + +What is this? |... + +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...
+Add support for user git ignore configuration file. #2929 - [hardkrash] +
Comments between fmt:on/off are reformatted #1245 + [marcelm] - T: enhancement - C: command line / config - C: file collection + T: bug + F: comments + F: fmtoff -
Is your feature request related to a problem? Please describe. -Include all sources of gitignore patterns. -I have...
This code: +# fmt: off + #nospace + # twospaces +# fmt: on +is changed to: +# fmt: off +# nospace +# twospaces +# fmt: on +I...
+Format hex code in unicode escape sequences in string literals #2916 - [Shivansh-007] +
Add a --single-quotes option to prefer single quotes #633 + [davvid] -
Closes #2067 -Closes #2828 +
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...
+ - JelleZijlstra: Suggested change - - - - - - - - - - - ...
+ JelleZijlstra- Shivansh-007: You actually got me there once originally. Done 👍🏻
+ JelleZijlstra: @woodruffw probably, looking into that now+ + + + ichard26: Closing as this was made under a false assessment of the situation.
legecy install failure #2927 - [Drr1122] +
Remove usage of _unicodefun module from dependency: 'click' #2967 + [bcrant] - T: documentation - -
I got stuck with this error can someone please help me out
Description +The _unicodefun module has been removed from the click library. +In addition, it is also not actively...
Put blank lines between nested classes in typing stubs #2783 - [MarkKoz] +
Prepare release 22.3.0 #2968 + [JelleZijlstra] - T: design - F: empty lines - S: accepted + skip news -
Describe the style change -Nested classes in typing stubs should have blank lines between them. -Examples in the...
Addition of `isort` to our dev toolchain #2930 - [Shivansh-007] +
Bug using a previous click version #2969 + [nidhaloff] - C: maintenance + T: bug + R: duplicate + C: installation / packaging -
Currently, the imports exist in any random order as added by the developers (see below), which sometimes makes it...
Describe the bug +It looks like black is depending on click>=1.8.0, However, click changed the API in the new version...
mount #2934 - [SUDDSDUDDS] +
black fails due to _unicodefun #2963 + [NAThompson] - R: invalid - T: documentation + T: bug + R: duplicate + C: installation / packaging -
Is this related to a problem? Please describe. - -Describe the solution you'd like - -Describe alternatives you've...
Describe the bug +On Centos 7: +WARNING: You are using pip version 21.2.3; however, version 22.0.4 is available. +$...
G #2933 - [Ieatemptiness] - - R: invalid - -
Update pylint config docs #2931 - [jpy-git] +
Fix _unicodefun patch code for Click 8.1.0 #2966 + [JelleZijlstra] -
Description -Closes #2914. I've confirmed that C0330 & C0326 checks no longer exist in pylint, therefore we can...
Fixes #2964
+ + tjeck97: breaks black==19.10b0 +ImportError: cannot import name '_unicodefun' from 'click'
- +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...
+ + + + liranbg: @stumpylog +try with locking click to click==8.0.1
+
-
-
+
- JelleZijlstra: Suggested change
-
-
-
-
-
-
-
-
-
-
- ...
Add improved docstring processing #2885 - [TomFryers] - - -
Description -One of the things discussed in issue #144 was quote placement. Reading through the discussion, there...
pylint checks seem to no longer exist? #2914 - [alkatar21] - - good first issue - T: documentation - -
Using black with other tools says for pylint, that one should switch off disable = C0330, C0326, however I find the...
-Writing failed: [Errno 2] No such file or directory: '/home/user/.cache/black/21.11b1/tmpb3yqz52h' #2681 - [avatar-lavventura] - - T: enhancement - -
When I update black, or have a clean install I keep seeing following message: -load_grammar()] Generating grammar...
+ + ProGamerGov: This causing black to fail when run on Google Colab right now as well.
Does flake8 still ignore W503 by default? #2925 - [ichard26] - - good first issue - T: documentation - -
Suspect regression. Using v 4.0.1 (Gentoo X86_64). Having just installed black (v22.1.0), reformatting produced...
-fmt: skip removes characters from a comment-only line before it #2339 - [felix-hilden] - - T: bug - C: invalid code - F: comments - F: fmtskip - -
Describe the bug -Comments behave oddly before # fmt: skip lines. I'll try to see if this has been reported later. -To...
-Black deletes nonempty block comments before decorators left unfromatted with # fmt: skip #2539 - [myw] - - T: bug - R: duplicate - F: fmtskip - -
Bug description: -Black deletes nonempty block comments before decorators left unfromatted with #fmt: skip. -As a...
-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...
+
- JelleZijlstra: Thanks for your contribution! A few quick things:
-
-Under our stability policy...
+
- jpy-git: @JelleZijlstra I've updated the code to only remove the brackets in preview mode now 😄
"fmt: skip" on colon-terminated lines either fails or moves the directive #2646 - [dansebcar] - - T: bug - C: unstable formatting - F: fmtskip - -
Describe the bug -Adding # fmt: skip after a colon (e.g. on the same line as def, if, with or class) either produces...
"# fmt: skip" does not work defined function #2936 - [rpvdkley] - - T: bug - R: duplicate - C: unstable formatting - F: fmtskip - -
Describe the bug -Black raises INTERNAL ERROR when # fmt: skip has been added at the end of a def function...
+
- felix-hilden: Confirmed on the playground, thanks for reporting!
+
- felix-hilden: Also turns out that this is a duplicate of #2646 ty @Shivansh-007
Remove redundant brackets from `except` clause #2937 - [jpy-git] - - T: enhancement - F: parentheses - -
Is your feature request related to a problem? Please describe. -The except clause can accept a parenthesised tuple of...
@@ -1016,6 +1039,6 @@
Describe the style change +Black indents items in brackets to help fit more on the screen, however in some cases, one...
+
- ichard26: Sadly I can't bump mypy for compilation as mypyc/mypyc#917 is still not fixed.
+ mangelozzi: In the original example the line does actually become shorter, although it's a marginal...+
- MarcoGorelli: Might want to also update the url of flake8 (which is now on github) so that gets auto updated too?
- -- - - - JelleZijlstra
+ mangelozzi: come up with examples where this rule would make formatting worse. I think my objections would...+
- ichard26: Good catch!
+ mangelozzi: f([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]) + +Settin...- - +
- JelleZijlstra
+ + + TomFryers: I had a look for cases of this in some of my code, and I think long string literals are by far...