Pre-commit hooks for Scala. Runs scalafmt on commit.
Find a file
2022-06-17 21:49:39 -05:00
.pre-commit-channel Added coursier-based hook for scalafmt 2022-06-17 21:39:38 -05:00
.pre-commit-hooks.yaml Restricting to scala files but still passing filenames rather than relying on the scalafmt config 2022-06-17 21:47:19 -05:00
LICENSE Added coursier-based hook for scalafmt 2022-06-17 21:39:38 -05:00
README.md Updated README to be useful. 2022-06-17 21:49:39 -05:00

meager-precommit-scala

meager.io pre-commit hooks for Scala 3 development. Used to run scalafmt on commit.

Usage

Create .pre-commit-config.yaml at the root of your repository:

---
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.3.0
    hooks:
      - id: end-of-file-fixer
      - id: trailing-whitespace
  - repo: https://git.sr.ht/~eidolon/meager-pre-commit-scala
    rev: v0.1.1
    hooks:
      - id: scalafmt