-
Notifications
You must be signed in to change notification settings - Fork 57
/
.pre-commit-hooks.yaml
55 lines (55 loc) · 1.8 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
- id: pretty-format-golang
name: Go Formatter
description: Runs gofmt over golang source files.
entry: pretty-format-golang
language: python
types: [go]
minimum_pre_commit_version: '1'
- id: pretty-format-ini
name: Pretty format INI
description: This hook sets a standard for formatting INI files.
entry: pretty-format-ini
language: python
types: [ini]
minimum_pre_commit_version: '1'
- id: pretty-format-java
name: Google (or Palantir) Java Formatter
description: Runs Google (or Palantir) Java Formatter over Java source files
entry: pretty-format-java
language: python
types: [java]
# this is needed because the hook downloads palanrir/google-java-formatter and
# we don't have yet a nice way of ensuring a single download over multiple runs
require_serial: true
minimum_pre_commit_version: '1'
- id: pretty-format-kotlin
name: KTLint
description: Runs KTLint (or ktfmt) over Kotlin source files
entry: pretty-format-kotlin
language: python
types: [kotlin]
minimum_pre_commit_version: '1'
# this is needed because the hook downloads ktfmt/ktlint and we don't have yet a
# nice way of ensuring a single download over multiple runs
require_serial: true
- id: pretty-format-rust
name: cargo-fmt
description: Runs cargo fmt over Rust source files
entry: pretty-format-rust
language: python
types: [rust]
minimum_pre_commit_version: '1'
- id: pretty-format-toml
name: Pretty format TOML
description: This hook sets a standard for formatting TOML files.
entry: pretty-format-toml
language: python
types: [toml]
minimum_pre_commit_version: '1'
- id: pretty-format-yaml
name: Pretty format YAML
description: This hook sets a standard for formatting YAML files.
entry: pretty-format-yaml
language: python
types: [yaml]
minimum_pre_commit_version: '1'