diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f6cbae0..ef618c4 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,5 +4,7 @@ description: "runs the scalafmt code formatter" entry: scalafmt language: coursier - types: [text] + types: [file] + files: \.(scala|sbt|sc)$ stages: [commit] + pass_filenames: true