From 512c70dd6e4c9dffcc6922066c127ccce145ee05 Mon Sep 17 00:00:00 2001
From: Ned Batchelder Black --preview mode produces invalid code in the first pass, causing second pass to fail #3117
- [yilei]
+ Black pre-commit and black command line disagree #3073
+ [justinxzhao]
T: bug
+ C: integrations
+ S: needs repro
- Describe the bug
-Black's --preview mode produces invalid code in the first pass, causing second pass to fail.
-To...Sample Dinghy report - Activity
Version information +pre-commit version: 2.19.0 +> pre-commit --version +pre-commit 2.19.0 +pre-commit black version:...
Black doesn't wrap functions with parameter comments #3113 - [liam-mipac] +
Awkward line break in multiple component expression #3187 + [taldcroft] - T: bug - F: comments - F: linebreak + T: design -
Describe the bug -If a line that exceeds the character limit has parameter comments, the function won't be moved to a...
Describe the style change +Prefer formatting an expression with a line break before the operator instead of breaking...
Line break before operator added only with `--experimental-string-processing` #2491 - [Zac-HD] +
Large (4.6MB) parser test code takes 4+ minutes to check. #3179 + [jorisgeer] T: bug - F: strings / docstrings - F: linebreak + C: performance -
Running Black on the following code makes no changes: -( - "whatever" == "a very long string broken across two...
Running Black --check on parser test code as documented in PP-617 on a relatively new Macbook takes 4.45 minutes. +To...
Black should enforce zero empty leading lines in function body #902 - [rogalski] +
Addition of `isort` to our dev toolchain #2930 + [Shivansh-007] - T: design - F: empty lines - S: accepted + C: maintenance -
Operating system: playground -Python version: playground -Black version: master -Consider following code snippet: -class...
Currently, the imports exist in any random order as added by the developers (see below), which sometimes makes it...
Remove newline after code block open #3035 - [saroad2] +
Add ISort #2941 + [Shivansh-007] - + skip news + C: maintenance +
Description -Fixes #902 -Newlines are great. They help us organize our code and leave room for the coders and...
No branch stable to install Vim plugin with vim-plug #2503 + [lcheylus] + + T: bug + C: vim + C: maintenance + +
According to the docs, to install Vim plugin with vim-plug, we must use branch stable. But there is no (more ?)...
- ichard26: This AUTHORS list is so out of date, gosh. Good for you adding yourself!
+ ichard26: I agree. Matter of fact, I plan on converting stable back into a branch for the next release...Release 22.7.0 (July) #3163 + [ichard26] + + C: maintenance + +
Disclaimer: I've seen pip and mypy use release planning issues. I've got a lot of free time for the time being so...
+Add isort to linting toolchain #3188 + [ichard26] + + C: cleanup + skip news + C: maintenance + +
Description +Resolves #2930 and closes #2941. +Checklist - did you ... + + Add a CHANGELOG entry if necessary? -> n/a +...
Add improved docstring processing #2885 - [TomFryers] +
"stable" branch changed to "stable" tag #3186 + [KevinWhalen]
Description -One of the things discussed in issue #144 was quote placement. Reading through the discussion, there...
Update documentation dependencies #3118 +
[WIP] Fix fmt on and off for comments #2114 [ichard26] - T: documentation - C: dependencies - skip news - C: maintenance + +
Fixes GH-1245. +Tests are complete and the fixing patch is mostly done, although it needs A LOT of cleanup and also...
blib2to3 can raise TokenError and IndentationError too #2671 + [ichard26] + + skip news +
Fix the regression of GH-2317 caused by GH-2668. I explicitly made this PR from my fork of psf/black so the...
Remove Python 2 support #2740 + [ichard26] + +
Description -It's easier to update all of them at once. +Should unblock GH-2297 and mypyc. Checklist - did you ... - Add a CHANGELOG entry if...
Stop changing return type annotations to tuples #2384 + [ichard26] + + +
Fixes #2381. + +This fixes a bug where a trailing comma would be added to a +parenthesized return type annotation...
Cache grammar tables after finishing, not at startup #2702 + [ichard26] + + +
Description +*and also get rid of the confusing log messages related to the grammar cache which just confuses...
[mypyc] GHA macOS 10.15 is deprecated and is going to be removed by August 30, 2022 #3192 + [ichard26] + + C: installation / packaging + C: maintenance + +
Having ported over the mypyc wheel build workflow to here1, I realized it's using macOS 10.15 for all of the macOS...
Bump pre-commit hooks #3191 + [ichard26] + + skip news + C: maintenance + +
Description +Got bored waiting for CI to pass on my other PRs. I'm surprised black types check without changes...
use is_number_token insteaed of assertion #3069 - [MarcoGorelli] +
Improve the the blib2to3 grammar caching mechanism #1143 + [EWouters] - skip news + T: enhancement + C: configuration -
Description - -Checklist - did you ... +
I get an error upon launching Jupyter Lab with the jupyterlab_code_formatter extension enabled: +[I 10:37:25.686...
Vim plugin: prefix errors with "Black" #3185 + [tobast] - Add a CHANGELOG entry if necessary? - Add / update tests if necessary? - Add...
Is your feature request related to a problem? Please describe. +When Black is run automatically as a Vim plugin, eg....
+
- MarcoGorelli: I'm not familiar with mypyc, so handling over to @ichard26 for this one
Preview option support for blackd #3195 + [Mogost] + + T: enhancement + +
It seems that blackd does not support the preview option now. +I suggest implementing an option for that like it is...
Remove blib2to3 grammar cache logging #3193 + [ichard26] + + C: blib2to3 + +
Description +This has been annoying me for too long. +As error logs are emitted often (they happen as Black's cache...
- - + + JelleZijlstra: Good idea. I remember some internal confusion at work about this too.
+
- felix-hilden: Oh, I see. If this is the case then consider it resolved!
Remove trailing spaces in f-string expressions #3119 - [saroad2] +
Add sanity check to executable CD + more #3190 + [ichard26] - + C: cleanup + skip news + C: maintenance +
Description -Added a new feature in preview mode: Black now knows how to trim trailing whitespaces inside...
+ + + + + cooperlees: Is colorama huge / can it break platforms? Should we just default to it?
+ +Test run black on self #3114 - [saroad2] +
Consolidate test CI and add concurrency limits #3189 + [ichard26] - skip news + C: cleanup + skip news + C: maintenance
Description -Removed the hard coded SOURCE list from test_format.py. Now, black is run as part of the Lint CI and...
-
+
+
- cooperlees: I also think we don't need a redundant second run of black on itself ...
Better quotes normalisation with triple quotes #3196 + [hauntsaninja] + + T: enhancement + +
Is your feature request related to a problem? Please describe. +Black's general philosophy is to prefer double...
Vim: prefix messages with "Black:" #3194 + [tobast] + + C: vim + +
Description +As mentioned in #3185, when using Black as a Vim plugin, especially automatically on save, the plugin's...
+ + ichard26: I agree. Congrats on your first contribution here, thanks again!
Upcoming aiohttp 4.0 is breaking our test suite with a new deprecation warning #3176 + [ichard26] + + help wanted + good first issue + C: dependencies + C: maintenance + +
See https://github.com/ichard26/black-deps-ci/runs/7374216061?check_suite_focus=true. We can either bump the lower...
Allow no space in doublestar when math operation (#538) (#2095) #2095 + [dpalmasan] + + +
Simple fix for (#538), changes include: + +Allow no space doublestar in math operations +Add tests for such scenario in...
[Feature Request] Optimize imports #333 - [devxpy] +
feat(config): Support `--config` in pyproject.toml #2525 + [Shivansh-007] - T: enhancement - help wanted + C: configuration -
Can we please have a feature, similar to PyCharm's "optimize imports" feature, which basically sorts and removes...
Description +You can now specify config key in pyproject.toml which does the same job as the CLI option --config. The...
@@ -563,8 +827,8 @@
+ + + + andresito00: @justinxzhao I thought I was seeing something like this, but later realized that I had more than...
+ +