[MAINT] Use commit hash for checkout in pre-commit workflow
#2310
+4
−1
pre-commit workflow
#2310