black icon indicating copy to clipboard operation
black copied to clipboard

The uncompromising Python code formatter

Results 577 black issues
Sort by recently updated
recently updated
newest added

**Describe the bug** Black does not break lines containing class member access even though character line limit is exceeded. **To Reproduce** Given this code using dataclasses with long member names:...

T: bug
F: linetoolong

### Description When an assignment statement's left hand side fits on a single line, prefer splitting the right hand side's outer optional parens. Fixes #1498. ### Checklist - did you...

Issue code (assume max line length

T: design
F: parentheses
F: linetoolong

**Describe the bug** With preview style, a long f-string where the only spaces are in the expression bit has parentheses added even though it isn't split over lines. For example:...

T: bug
F: parentheses
F: strings
C: preview style

### Description Previously, when ESP 1) merges strings in `StringMerger`; 2) strips parens in `StringParenStripper`, it finds and does one transform for one string group. Each transform will create a...

## Hello! Please read the following before commenting... If you're here to learn more about the proposed 2023 stable style or provide feedback, you're in the right place. Here's what...

T: enhancement
help wanted
T: design
C: maintenance

**Is your feature request related to a problem? Please describe.** I am working in a Databricks environment and developing workflows there. Unfortunately, it awkwardly requires external dependencies to be installed...

T: enhancement
C: configuration
S: needs discussion

I want to immediately see on the output (stdout) what has changed after a black run. `--diff` stops writing back the file. So it would require an arduous tee-ing to...

T: enhancement
S: needs discussion

Fixes #3425. Fixes #3427.

skip news

``` % time black --diff ~/some/file.py All done! ✨ 🍰 ✨ 1 file would be left unchanged. black --diff ~/some/file.py 17.78s user 0.18s system 99% cpu 18.067 total % time...

C: performance
F: strings
C: preview style