forked from superradcompany/microsandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (67 loc) · 2.22 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
70 lines (67 loc) · 2.22 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: ^vendor/
- id: trailing-whitespace
exclude: ^vendor/
- id: check-toml
- id: check-yaml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
args: [--branch, main]
- repo: local
hooks:
- id: cargo-fmt-workspace
name: cargo fmt (workspace)
entry: cargo fmt --all -- --check
language: system
pass_filenames: false
files: \.(rs|toml)$
- id: cargo-clippy-workspace
name: cargo clippy (workspace)
entry: bash -lc 'CI=true cargo clippy --workspace -- -D warnings'
language: system
pass_filenames: false
files: \.(rs|toml)$
- id: cargo-fmt-agentd
name: cargo fmt (agentd)
entry: cargo fmt --manifest-path crates/agentd/Cargo.toml -- --check
language: system
pass_filenames: false
files: \.(rs|toml)$
- id: cargo-clippy-agentd
name: cargo clippy (agentd)
entry: cargo clippy --manifest-path crates/agentd/Cargo.toml -- -D warnings
language: system
pass_filenames: false
files: \.(rs|toml)$
- id: cargo-doc-workspace
name: cargo doc (workspace)
entry: bash -lc 'CI=true RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps'
language: system
pass_filenames: false
files: \.(rs|toml)$
- id: cargo-build-msb
name: cargo build (msb)
entry: bash -lc 'CI=true cargo build -p microsandbox-cli'
language: system
pass_filenames: false
files: \.(rs|toml)$
- id: python-sdk-ruff
name: ruff check (Python SDK)
entry: bash -lc 'cd sdk/python && uv run ruff check .'
language: system
pass_filenames: false
files: ^sdk/python/.*\.py$
- id: python-sdk-build
name: cargo check (Python SDK)
entry: bash -lc 'CI=true cargo check -p microsandbox-py'
language: system
pass_filenames: false
files: ^sdk/python/.*\.(rs|toml)$