Instagram / Fixit

Advanced Python linting framework with auto-fixes and hierarchical configuration that makes it easy to write custom in-repo lint rules.
https://fixit.rtfd.io/en/latest/
Other
668 stars 61 forks source link

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

Open eugenenelou opened 7 months ago

eugenenelou commented 7 months ago

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