Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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