-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
61 lines (56 loc) · 1.59 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: check-yaml
- id: check-json
exclude: "aaa-vscode-extension/.*"
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: local
hooks:
- id: mypy
name: run mypy
language: system
entry: mypy --strict
types: [python]
- repo: https://github.com/lk16/detect-missing-init
rev: v0.1.6
hooks:
- id: detect-missing-init
args:
["--create", "--track", "--python-folders", "python/aaa,python/tests"]
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
pass_filenames: false
args: [--manifest-path, aaa-stdlib/Cargo.toml]
- id: cargo-check
pass_filenames: false
args: [--manifest-path, aaa-stdlib/Cargo.toml]
- id: clippy
pass_filenames: false
args: [--manifest-path, aaa-stdlib/Cargo.toml]
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
pass_filenames: false
args: [--manifest-path, aaa/Cargo.toml]
- id: cargo-check
pass_filenames: false
args: [--manifest-path, aaa/Cargo.toml]
- id: clippy
pass_filenames: false
args: [--manifest-path, aaa/Cargo.toml]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.8
hooks:
- id: ruff
args: [--fix]
- id: ruff-format