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-compile
Checks thatsbt compile
completes successfully. -
sbt-test
Checks thatsbt test
completes successfully. -
sbt-task
Checks that provided sbt task completes successfully. Useargs: [<task>]
with the desired task.