Skip to content

Autofix does not work with "black" formatter if black formatter changes nothing #427

@eugenenelou

Description

@eugenenelou

If the autofixed changes are compatible with black, black raises an error and the fix are dropped:

File "src/black/__init__.py", line 1023, in format_file_contents
  black.report.NothingChanged

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions