News for hackers. Stuff that matters.
Re:Black, the uncompromising Python code formatter, is stable by dmurray on Saturday January 29, 2022 @10:28PM (#30133636)
Since Black enforces that indents are exactly four spaces, you could configure your editor to render four spaces at the start of a line as two spaces, getting exactly the behaviour you desire from tabs.

An editor plugin for this wouldn't even have to be syntax-aware, except for some rare cases where you are using spaces to nicely align a multiline string.

Re:Black, the uncompromising Python code formatter, is stable by afavour on Sunday January 30, 2022 @01:40AM (#30134665)
“Since black enforces four spaces, all you need to do is reinvent the functionality of tabs”

I know it’s very far from the biggest problem in the world but this does make me chuckle a little.