2020-11-05 11:09:00 +08:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-01-21 00:02:26 +08:00
|
|
|
rev: v4.4.0
|
2020-11-05 11:09:00 +08:00
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
2022-07-28 02:04:07 +08:00
|
|
|
exclude: ^aws/rust-runtime/aws-sigv4/aws-sig-v4-test-suite/
|
2020-11-05 11:09:00 +08:00
|
|
|
- id: trailing-whitespace
|
2021-11-03 03:02:57 +08:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: kotlin-block-quotes
|
|
|
|
name: Kotlin Block Quotes
|
|
|
|
entry: ./.pre-commit-hooks/kotlin-block-quotes.py
|
|
|
|
language: python
|
|
|
|
files: ^.*\.kt$
|
2021-12-02 21:39:30 +08:00
|
|
|
- id: license-header-check
|
|
|
|
name: License Header Check
|
|
|
|
entry: ./.pre-commit-hooks/license-header.sh
|
|
|
|
language: system
|
|
|
|
files: ^.*$
|
|
|
|
pass_filenames: false
|
2020-11-05 11:09:00 +08:00
|
|
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
2023-07-21 04:45:14 +08:00
|
|
|
rev: v2.10.0
|
2020-11-05 11:09:00 +08:00
|
|
|
hooks:
|
|
|
|
- id: pretty-format-kotlin
|
2023-02-23 02:21:06 +08:00
|
|
|
args: [--autofix, --ktlint-version, 0.48.2]
|
2020-11-05 11:09:00 +08:00
|
|
|
- id: pretty-format-yaml
|
|
|
|
args: [--autofix, --indent, '2']
|
2021-05-01 05:33:20 +08:00
|
|
|
- id: pretty-format-rust
|
2022-04-21 21:52:32 +08:00
|
|
|
entry: rustfmt --edition 2021
|
2021-05-01 05:33:20 +08:00
|
|
|
files: ^.*\.rs$
|