Add optional ./ci/code_checks.sh pre-commit
xref https://github.com/pandas-dev/pandas/pull/36722#issuecomment-704655928

> Is there a way to have an option in code_checks.sh that actually runs the appropriate pre-commit hook? that way we have a single source of truth, and you can actually still run them (of course have to avoid running these on the CI from the script as well)