Fix pre-commit hook to only format staged files
Use treefmt For context, see upstream PR: https://github.com/divnix/digga/pull/491