-
Notifications
You must be signed in to change notification settings - Fork 34
/
.pre-commit-config.yaml
77 lines (71 loc) · 2.04 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
71
72
73
74
75
76
77
repos:
- repo: local
hooks:
# Rust
- id: rustfmt
name: rustfmt
description: Check Rust fmt.
entry: cargo fmt
language: system
types: [rust]
files: Cargo\.toml|\.rs$
pass_filenames: false
args: ["--all", "--", "--check"]
fail_fast: true
# - id: cargo-test
# name: cargo test
# description: Run Rust tests.
# entry: cargo test
# language: system
# types: [rust]
# files: Cargo\.toml|\.rs$
# pass_filenames: false
# args: ["--all-features", "--", "--test-threads=1"]
# fail_fast: true
- id: clippy
name: clippy
description: Run Rust lints.
entry: cargo clippy
language: system
types: [rust]
files: Cargo\.toml|\.rs$
pass_filenames: false
args: ["--all-features", "--", "-D", "warnings"]
fail_fast: true
# Python
# - id: pyfmt
# name: pyfmt
# description: Check Python fmt.
# entry: cd huak-py && make fmt-check
# language: system
# types: [python]
# files: pyproject\.toml|\.py$
# pass_filenames: false
# fail_fast: true
# - id: ruff
# name: ruff
# description: Run Python lints.
# entry: cd huak-py && make lint
# language: system
# types: [python]
# files: pyproject\.toml|\.py$
# pass_filenames: false
# fail_fast: true
# - id: mypy
# name: mypy
# description: Check Python types.
# entry: cd huak-py && make lint-types
# language: system
# types: [python]
# files: pyproject\.toml|\.py$
# pass_filenames: false
# fail_fast: true
# - id: pytest
# name: pytest
# description: Run Python tests.
# entry: cd huak-py && make test
# language: system
# types: [python]
# files: pyproject\.toml|\.py$
# pass_filenames: false
# fail_fast: true