HACKER Q&A
📣 whiskey14

Why/why not do you use opinionated formatters? (e.g. Black, Prettier?)


Why/why not do you use opinionated formatters? (e.g. Black, Prettier?)


  👤 CleverLikeAnOx Accepted Answer ✓
Why:

Avoid time wasting nit-picks on PRs.

Consistent formatting may be easier to quickly read.

Why not:

Avoid taking a dependency.

Avoid "fix formatting" commits (or the complexity of having a system auto-apply formatting).

Formatters don't always make the most readable code. Sometimes non-standard formatting actually communicates more clearly.