Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 642 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 642 Bytes

pre-commit-sbt

Pre-commit hooks for sbt based projects for use with pre-commit.

Using pre-commit-sbt 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: ...

Available hooks

  • sbt-compile Checks that sbt compile completes successfully.

  • sbt-test Checks that sbt test completes successfully.

  • sbt-task Checks that provided sbt task completes successfully. Use args: [<task>] with the desired task.