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** `#fmt: skip` is ignored in the specific case demonstrated below. _Edit_: Actually, thinking about it again I realised that (to me), the actual bug is that black...

T: bug
F: fmtskip

### Description Closes #3946 Hi! It looks like you have some special handling for `# type: ignore` comments to avoid moving said comments around due to positional meaning. I think...

I use VIM 8.2 on Ubuntu 21.10 and install black via `Plugin 'psf/black'` In the documentation it says ``` and execute the following in a terminal: cd ~/.vim/bundle/black git checkout...

T: documentation

I swear this isn't just an advertisement for my youtube video... but along the same lines of my youtube video [multiprocessing: slow things first](https://youtu.be/h4vmU2DJoQg) I believe there's some optimization potential...

**Describe the bug** ``` error: cannot format foo.py: INTERNAL ERROR: Black 25.1.1.dev56+gb3ae57b on Python (CPython) 3.13.5 produced different code on the second pass of the formatter. Please report a bug...

T: bug

**Describe the bug** I expect the wrapping to look nicer **To Reproduce** For example, take this code: ```python class Example: @overload @classmethod def create_from[TBool: (Literal[True], Literal[False])]( cls: type[SearchConfig[Any]], search_config: SearchConfig[Any],...

T: bug

**Describe the style change** [string_preprocessing] _Black_ should respect new lines (`\n`) in strings. **Input:** ```py message = ( "1. Go to Google Developers Console and log in with your favourite...

T: style
F: strings
C: preview style