-
Notifications
You must be signed in to change notification settings - Fork 193
/
.pre-commit-config.yaml
44 lines (44 loc) · 1.39 KB
/
.pre-commit-config.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: ^aws/rust-runtime/(aws-sigv4/aws-sig-v4-test-suite/|aws-config/test-data/default-provider-chain/eks_pod_identity_credentials/fs/token.jwt$)
- id: trailing-whitespace
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.11.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- id: pretty-format-rust
entry: rustfmt --edition 2021
files: ^.*\.rs$
- repo: local
hooks:
- id: ktlint
name: Ktlint
entry: ./.pre-commit-hooks/ktlint.sh
language: system
files: ^.*\.kt$
- id: kotlin-block-quotes
name: Kotlin Block Quotes
entry: ./.pre-commit-hooks/kotlin-block-quotes.py
language: python
files: ^.*\.kt$
- id: sdk-lints-check
name: sdk-lints
entry: ./.pre-commit-hooks/sdk-lints.sh
language: system
files: ^.*$
pass_filenames: false
# Check that runtime crates are properly version bumped when changed
- id: runtime-versioner-check
name: runtime-versioner
entry: ./.pre-commit-hooks/runtime-versioner.sh
language: system
# Only run if the rust runtime files change
files: ^.*/?rust-runtime/.*$
pass_filenames: false
# Show the info messages from the runtime versioner that explain how things will publish
verbose: true