gs-pre-commit-scala/.pre-commit-hooks.yaml

10 lines
226 B
YAML

---
- id: scalafmt
name: scalafmt
description: "Runs the scalafmt code formatter using Coursier."
entry: scalafmt
language: coursier
types: [file]
files: \.(scala|sbt|sc)$
stages: [commit]
pass_filenames: true