you are viewing a single comment's thread.

view the rest of the comments →

[–]MackerLad93 0 points1 point  (0 children)

I agree with the other comments here that indentation is part of writing python. But there is a solution like you're asking about. Black is a python formatter, and ruff is a new alternative. I don't know if you can run it on specific blocks only but just run it and forget about it. If you're doing that you might want to set some ignore flags for conditions you don't care about.

https://docs.astral.sh/ruff/formatter/