I'm curious if anyone here uses Black for formatting their Python code or if you have other tools or methods you prefer to ensure best practices. I'd love to hear your experiences and any recommendations you might have!
2 Answers
Definitely opt for Black, whether you use it directly or through Ruff. It’s one of the fastest, most reliable options out there.
I’ve tried Black on a few projects, and honestly, it's a real 'set it and forget it' kind of tool. You do give up some control over styling, but the consistency it brings is awesome, especially when you’re on a team. Most folks pair it with something like Flake8 or Ruff for linting, so you get both formatting and code quality checks in one go. Eventually, you stop worrying about formatting entirely, which is part of the benefit—fewer little decisions mean more time for actual coding!

I had no idea about Ruff! I’ve been using Pylint all this time. What do you think about Pylint?