Skip to content

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

Open
@eugenenelou

Description

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

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions