git commit hooks & ci checks that ensure everything is formatted because that one coworker refuses to set it up to run on save and keeps forgetting causing merge conflicts down the line
But still, formatting changed files on commit, even on CI ought to be a fraction of a second.