From 0c4afb9449cd69afb22e645fd1a5a598ad72ff07 Mon Sep 17 00:00:00 2001 From: Pat Garrity Date: Tue, 30 Apr 2024 21:24:41 -0500 Subject: [PATCH] Trying to use system-level scalafmt. --- .pre-commit-channel/scalafmt.json | 10 ---------- .pre-commit-hooks.yaml | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 .pre-commit-channel/scalafmt.json diff --git a/.pre-commit-channel/scalafmt.json b/.pre-commit-channel/scalafmt.json deleted file mode 100644 index 74e4f13..0000000 --- a/.pre-commit-channel/scalafmt.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "mainClass": "org.scalafmt.cli.Cli?", - "repositories": [ - "central" - ], - "dependencies": [ - "org.scalameta::scalafmt-cli:latest.release" - ] -} - diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 261464e..09e66d3 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -3,7 +3,7 @@ name: scalafmt description: "Runs the scalafmt code formatter using Coursier." entry: scalafmt - language: coursier + language: system types: [file] files: \.(scala|sbt|sc)$ stages: [commit]