Skip to content

Black Formatter Maybe Gives Bad Design in my .py Files #577

@RanaUniverse

Description

@RanaUniverse

I am using Python 3.13.0 in uv venv.
I also find this same issue in other normal python even in others os.

Currently Writing Python Code in: Ubuntu 24.04 LTS

I have a formatting issue here, please see the two images below:

Image

Image

I wrote This two time_str & breaking_str variable in goodly formatted which sometime Black Formatter follow this and keep this as it is, as this looks better so i found and want to keep this formatting as it is in this two variable, but for others file lines use the black formatter, but after i run black formatter (ctrl+shift+i) i found this become some no good looking as the second image. Which looks bad and hard to modefy later.
SO please say me how i can keep some lines formatting as my own, rather others part of the module.py will be use the formatting of the black.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bugtriage-neededIssue is not triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions