Skip to content

Commit a46872c

Browse files
docs: update readme
1 parent bc1f275 commit a46872c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,27 @@
22

33
[Rust](https://www.rust-lang.org) tools package for [pre-commit](https://pre-commit.com).
44

5+
Forked from: [doublify's pre-commit-rust](https://github.com/doublify/pre-commit-rust) (**NOTE: Their repo is unmaintained**)
6+
57
## Using rust tools with pre-commit
68

79
```yaml
8-
- repo: https://github.com/doublify/pre-commit-rust
10+
- repo: https://github.com/antonio-hickey/rusted-pre-commits
911
rev: master
1012
hooks:
1113
- id: fmt
1214
- id: cargo-check
1315
- id: clippy
16+
- id: build
17+
- id: test
1418
```
1519
1620
## Passing arguments to rustfmt
1721
1822
```yaml
19-
- repo: https://github.com/doublify/pre-commit-rust
23+
- repo: https://github.com/antonio-hickey/rusted-pre-commits
2024
rev: master
2125
hooks:
2226
- id: fmt
23-
args: ['--verbose', '--edition', '2018', '--']
27+
args: ['--verbose', '--edition', '2021', '--']
2428
```

0 commit comments

Comments
 (0)