Pre-commit hooks for sbt based projects for use with pre-commit.
Add this to your .pre-commit-config.yaml
- repo: https://github.com/blaz-kranjc/pre-commit-sbt
rev: v1.0.0 # Use the ref you want to point at
hooks:
- id: sbt-test
# - id: ...-
sbt-compileChecks thatsbt compilecompletes successfully. -
sbt-testChecks thatsbt testcompletes successfully. -
sbt-taskChecks that provided sbt task completes successfully. Useargs: [<task>]with the desired task.