As of 26.1, Black forces 1 line after imports which—no matter how you feel about that—conflicts with flake8’s E302 that enforces 2 empty lines btw classes/functions.

I've been told that it was in --preview for a yr & nobody complained… I can hear Douglas Adams giggling.

As one of the OG Black cheerleaders this makes me sad since this change seems entirely unnecessary. Making THE Python-based formatter incompatible w/ THE Python-based linter… This was the fallback in case of a ruff rugpull. 🙁

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/hynek/statuses/116163838580392933 on your instance and quote it. (Note that quoting is not supported in Mastodon.)