While making a PR for #602, I noticed that the current pre-commit hook check runs for all files instead of the modified files. I suggest changing this behaviour for a nicer PR review experience.