black
black copied to clipboard
The uncompromising Python code formatter
**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:...
### 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
**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:...
### 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...
**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...
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...
``` % 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...