PYTHON-6266In Progress

Make the synchro pre-commit hook atomic and write only real changes

h3. *Context* The {{synchro}} pre-commit hook regenerates the synchronous driver and test files in place, and the {{synchro-stage-files}} hook stages what it wrote. When a run fails partway, or a later hook fails, dozens of modified generated files are left in the working tree. [CONTRIBUTING.md|https://github.com/mongodb/mongo-python-driver/blob/master/CONTRIBUTING.md] documents this failure mode and a manual cleanup workaround. Developers must then tell their own changes apart from gene

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Infrastructure
Labels
Tags and classification
greenerbuild