forked from boxlite-ai/boxlite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (49 loc) · 1.28 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
51 lines (49 loc) · 1.28 KB
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
minimum_pre_commit_version: "3.0.0"
default_install_hook_types:
- pre-commit
- pre-push
repos:
- repo: local
hooks:
- id: lint-fix
name: Quality autofix (fmt + lint checks)
entry: make lint:fix
language: system
pass_filenames: false
stages: [pre-commit]
# Only run when source files change (mirrors CI dorny/paths-filter).
files: >-
(?x)^(
.*\.rs|
.*\.py|
.*\.ts|
.*\.js|
.*\.c|
.*\.h|
.*\.go|
.*/Cargo\.toml|
Cargo\.lock|
sdks/python/pyproject\.toml|
sdks/node/package\.json|
make/quality\.mk|
\.pre-commit-config\.yaml
)$
- id: full-test-matrix
name: Smart test matrix (changed components only)
entry: make test
language: system
pass_filenames: false
verbose: true
stages: [pre-push]
# Only run when source/test files change (mirrors CI dorny/paths-filter).
files: >-
(?x)^(
src/boxlite/|
src/shared/|
src/cli/|
src/ffi/|
src/guest/|
sdks/|
.*/Cargo\.toml$|
Cargo\.lock$
)