forked from smithy-lang/smithy-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
31 lines (31 loc) · 891 Bytes
/
.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
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/
- id: trailing-whitespace
- repo: local
hooks:
- id: kotlin-block-quotes
name: Kotlin Block Quotes
entry: ./.pre-commit-hooks/kotlin-block-quotes.py
language: python
files: ^.*\.kt$
- id: license-header-check
name: License Header Check
entry: ./.pre-commit-hooks/license-header.sh
language: system
files: ^.*$
pass_filenames: false
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.6.0
hooks:
- id: pretty-format-kotlin
args: [--autofix, --ktlint-version, 0.48.2]
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- id: pretty-format-rust
entry: rustfmt --edition 2021
files: ^.*\.rs$