forked from softwaremill/scala-pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-hooks.yaml
37 lines (37 loc) · 1.07 KB
/
.pre-commit-hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
- id: sbt-fatal-warnings
name: Scala fatal warnings
stages: [pre-commit,pre-push]
language: python
entry: sbt-fatal-warnings
pass_filenames: false
always_run: true
minimum_pre_commit_version: '0.19.0'
- id: sbt-unused-imports
name: Scala unused imports (+ fatal warnings)
stages: [pre-commit,pre-push]
language: python
entry: sbt-fatal-warnings --add_arg='-Ywarn-unused-import'
pass_filenames: false
always_run: true
minimum_pre_commit_version: '0.19.0'
- id: scalafmt-check
name: scalafmt check formatting
description: Validate code formatting with scalafmt
entry: scalafmt --test
args: [--mode=changed]
language: system
stages: [pre-commit,pre-push]
always_run: true
pass_filenames: false
minimum_pre_commit_version: '2.8.0'
- id: scalafmt-autofix
name: scalafmt format code
description: Automatically fix code formatting with scalafmt
entry: ./shell/scalafmt-autofix.sh
args: [--mode=changed]
language: script
stages: [pre-commit]
always_run: true
pass_filenames: false
require_serial: true
minimum_pre_commit_version: '2.8.0'