-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (41 loc) · 1.39 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (41 loc) · 1.39 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=auto]
- id: check-json
- id: check-toml
- id: check-yaml
args: [--unsafe]
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.15.0
hooks:
- id: pretty-format-kotlin
name: format kotlin
args: [--autofix, --ktfmt, --ktfmt-style=kotlinlang]
- id: pretty-format-java
name: format java
args: [--autofix]
- repo: local
hooks:
- id: prettier
name: format markdown, json, yaml, css
language: node
entry: prettier --write
additional_dependencies: [prettier]
types_or: [markdown, json, yaml, css]
- id: dump-abi
name: dump jvm and klib abi
language: system
entry: ./gradlew updateLegacyAbi
types_or: [kotlin]
pass_filenames: false
stages: [manual]
exclude: '^.*\.api$' # ignore formatting for generated files