forked from softwaremill/scala-pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-hooks.yaml
32 lines (32 loc) · 893 Bytes
/
.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
- id: sbt-fatal-warnings
name: Scala fatal warnings
stages: [commit,push]
language: python_venv
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: [commit,push]
language: python_venv
entry: sbt-fatal-warnings --add_arg='-Ywarn-unused-import'
pass_filenames: false
always_run: true
minimum_pre_commit_version: '0.19.0'
- id: sbt-scalafmt
name: scalafmt formatting check
stages: [commit,push]
language: python_venv
entry: scalafmt
pass_filenames: false
always_run: true
minimum_pre_commit_version: '0.19.0'
- id: sbt-wartremover
name: Scala WartRemover plugin check
language: python_venv
stages: [commit,push]
entry: sbt-wartremover
pass_filenames: false
always_run: true
minimum_pre_commit_version: '0.19.0'