tangled
alpha
login
or
join now
vitorpy.com
/
tangled-cli
65
fork
atom
Rust CLI for tangled
65
fork
atom
overview
issues
1
pulls
5
pipelines
Add pre-commit hook config
Vitor Py Braga
5 months ago
d7e0c6d8
368f6164
+18
1 changed file
expand all
collapse all
unified
split
.pre-commit-config.yaml
+18
.pre-commit-config.yaml
···
1
1
+
# Pre-commit configuration for Tangled workspace
2
2
+
# Uses local hooks to avoid network fetches and to run with system toolchain
3
3
+
4
4
+
repos:
5
5
+
- repo: local
6
6
+
hooks:
7
7
+
- id: rustfmt
8
8
+
name: rustfmt (cargo fmt --check)
9
9
+
entry: cargo fmt --all -- --check
10
10
+
language: system
11
11
+
types: [rust]
12
12
+
pass_filenames: false
13
13
+
- id: clippy
14
14
+
name: clippy (cargo clippy -D warnings)
15
15
+
entry: bash -lc 'cargo clippy --all-targets -- -D warnings'
16
16
+
language: system
17
17
+
types: [rust]
18
18
+
pass_filenames: false