Implement CaptainHook to run pre-commit tests to ensure code quality and consistency.
Add captainhook to run pre commit tests