-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.19 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
ci:
autofix_commit_msg: "chore(pre-commit.ci): auto fixes from pre-commit hooks"
autoupdate_commit_msg: "chore(pre-commit.ci): pre-commit autoupdate"
autoupdate_schedule: "monthly"
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-toml
exclude: ^cot-cli/src/project_template/
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
- repo: https://github.com/google/yamlfmt
rev: v0.15.0
hooks:
- id: yamlfmt
types_or: [json, yaml]
- repo: local
hooks:
- id: fmt
name: cargo fmt
files: ^.*\.(rs|toml)$
exclude: ^cot-cli/src/project_template/
language: rust
entry: cargo fmt
pass_filenames: false
- repo: https://github.com/instrumentl/pre-commit-just
rev: v0.1
hooks:
- id: format-justfile
name: "format justfiles"