2020-11-05 11:09:00 +08:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v2.3.0
|
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- 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
|
|
|
|
rev: v1.6.1
|
|
|
|
hooks:
|
|
|
|
- id: pretty-format-kotlin
|
2022-04-23 05:00:00 +08:00
|
|
|
args: [--autofix, --ktlint-version, 0.45.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$
|