-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
F: fmtskipfmt: skip implementationfmt: skip implementationT: enhancementNew feature or requestNew feature or request
Description
My environment is: python = 3.11.1, black = 23.1.0
the following is the info of commandpoetry show black:
name : black
version : 23.1.0
description : The uncompromising code formatter.
dependencies
- click >=8.0.0
- mypy-extensions >=0.4.3
- packaging >=22.0
- pathspec >=0.9.0
- platformdirs >=2
The code that black failed to skip:
join(
packages,
func.coalesce(orders.c.package_id, order_customer_types.c.package_id) == packages.c.id, # fmt: skip
isouter=True,
)
When I run black, I get this:
join(
packages,
func.coalesce(orders.c.package_id, order_customer_types.c.package_id)
== packages.c.id, # fmt: skip
isouter=True,
)
But what I expect is black can skip formating the third line and keep it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
F: fmtskipfmt: skip implementationfmt: skip implementationT: enhancementNew feature or requestNew feature or request