Add a pre-commit-hooks.yaml config file
also
- fix trailing ws reported by pre-commit
- pre-commit: explicitely whitelist 'iff' when running codespell
- Fix a few typos reported by codespell
Test Plan
try it using pre-commit run --all-files
See following diff for some fixes in utils and bin scripts.
Migrated from D2312 (view on Phabricator)