Skip to content

Commit 022f3a6

Browse files
committed
add git commit hooks
1 parent 4d42c4e commit 022f3a6

File tree

4 files changed

+77
-5
lines changed

4 files changed

+77
-5
lines changed

.github/workflows/codeowners.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ name: codeowners
33
on:
44
push:
55
paths:
6-
- 'codeowners-src/**'
7-
- '.github/workflows/codeowners.yml'
6+
- '**/*'
87
branches:
98
- '*'
109

11-
defaults:
12-
run:
13-
working-directory: .
10+
env:
11+
CARGO_TERM_COLOR: always
1412

1513
jobs:
1614
codeowners_test:

.rusty-hook.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[hooks]
2+
pre-commit = "cargo clippy -- -Dwarnings && cargo test && cargo fmt -- --check"
3+
4+
[logging]
5+
verbose = true

Cargo.lock

Lines changed: 68 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
2121

2222
[dev-dependencies]
2323
assert_cmd = "2.0.8"
24+
rusty-hook = "^0.11.2"

0 commit comments

Comments
 (0)