Instagram / Instagram/Fixit

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

Open
#427 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
714
Forks
72
PR merge metrics
No merged PRs in 30d

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.