-
Notifications
You must be signed in to change notification settings - Fork 39
/
.pre-commit-config.yaml
70 lines (69 loc) · 2.13 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright (c) 2020-present, UMD Database Group.
#
# This program is free software: you can use, redistribute, and/or modify
# it under the terms of the GNU Affero General Public License, version 3
# or later ("AGPL"), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.1.0
hooks:
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- id: debug-statements
- id: fix-encoding-pragma
- id: end-of-file-fixer
- id: detect-private-key
# - id: check-yaml
- id: check-json
- id: pretty-format-json
args:
- --autofix
- id: check-symlinks
- id: check-case-conflict
- id: check-merge-conflict
- repo: https://github.com/wangkuiyi/google-style-precommit-hook
rev: v0.1.1
hooks:
- id: google-style-java
pass_filenames: false
- repo: git://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
language: system
- repo: local
hooks:
- id: copyright_checker
name: copyright_checker
entry: python ./scripts/copyright.py
language: system
files: \.(go|py|sh|java|yaml|rs)$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
hooks:
- id: prettier
exclude: src/tests/data/plan
files: \.(md|css|yml|js)
- repo: https://github.com/flock-lab/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
- id: clippy
args: ["--all-targets", "--", "-D", "clippy::all"]
- repo: local
hooks:
- id: cargo-sort-ck
name: sort-ck
entry: cargo sort-ck -w # cargo install cargo-sort-ck
language: system
exclude: src/legacy
files: (Cargo.toml)$