Both are tools tool to manage and configure Git hooks. These tools don’t allow you to push if in your code something is not satisfactory with your configuration file. Configuration files:
- .scalafmt - use by pre-commit-hook (by default)
- scalastyle-config.xml - use by overcommit (by default)