adding credits to pre-commit hook