peterjc / flake8-black

flake8 plugin to run black for checking Python coding style
MIT License
165 stars 10 forks source link

Add compatibility with black 22 #45

Closed timkpaine closed 2 years ago

timkpaine commented 2 years ago

Utility function returns a tuple: https://github.com/psf/black/pull/2526

https://github.com/psf/black/blob/521d1b8129c2d83b4ab49270fe7473802259c2a2/src/black/files.py#L43

Fixes #44

Natureshadow commented 2 years ago

43 seems to handle this more gracefully, without breaking compatibility with black before 22.

timkpaine commented 2 years ago

idc so long as its fixed, all prior versions of black are beta so backwards compat is probably unnecessary

peterjc commented 2 years ago

There are still occasional behavior changes in black so the backward compatibility is nice.

I’m checking this from my phone, will hopefully fix it tonight.