-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.pre-commit-config.yaml
93 lines (91 loc) · 2.77 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# install the pre-commit hooks:
#
# ❯ pre-commit install --hook-type pre-commit
# pre-commit installed at .git/hooks/pre-commit
#
# ❯ pre-commit install --hook-type pre-push
# pre-commit installed at .git/hooks/pre-push
#
# run all linters liks:
#
# ❯ pre-commit run --all-files
# isort....................................................................Passed
# black....................................................................Passed
# ruff.....................................................................Passed
# flake8...................................................................Passed
# mypy.....................................................................Passed
#
# run a single linter like:
#
# ❯ pre-commit run --all-files isort
# isort....................................................................Passed
#
# to run the slow linters, like tests, pass `--hook-stage manual`, like:
#
# > pre-commit run --all-files --hook-stage manual
repos:
- repo: local
hooks:
- id: check
name: check
stages: [commit, push, manual]
language: system
entry: cargo check
always_run: true
pass_filenames: false
- id: fmt
name: fmt
stages: [commit, push, manual]
language: system
entry: cargo fmt
always_run: true
pass_filenames: false
- id: clippy
name: clippy
stages: [commit, push, manual]
language: system
entry: cargo clippy
always_run: true
pass_filenames: false
- id: test-core
name: test core
stages: [manual]
language: system
entry: cargo test core
always_run: true
pass_filenames: false
- id: test-flirt
name: test flirt
stages: [manual]
language: system
entry: cargo test flirt
always_run: true
pass_filenames: false
- id: test-pylancelot-rust
name: test pylancelot (rust)
stages: [manual]
language: system
entry: cargo test pylancelot
always_run: true
pass_filenames: false
- id: test-pylancelot-py
name: test pylancelot (python)
stages: [manual]
language: system
entry: bash .github/scripts/pytest-pylancelot.sh
always_run: true
pass_filenames: false
- id: test-pyflirt-rust
name: test pyflirt (rust)
stages: [manual]
language: system
entry: cargo test pyflirt
always_run: true
pass_filenames: false
- id: test-pyflirt-py
name: test pyflirt (python)
stages: [manual]
language: system
entry: bash .github/scripts/pytest-pyflirt.sh
always_run: true
pass_filenames: false