Skip to content

Commit 1e60475

Browse files
committed
feat: update AGENTS.md with installation instructions for Rust components
1 parent a96456d commit 1e60475

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

AGENTS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@
2121
should omit unnecessary parentheses around `if` conditions.
2222
- Install the pre-commit hooks with `pre-commit install` and run them with
2323
`pre-commit run --files <file1> <file2>` or `pre-commit run --all-files`.
24+
25+
Install the required Rust components before running pre-commit:
26+
27+
```bash
28+
rustup component add rustfmt clippy
29+
```
30+
31+
If installation is blocked by a proxy, see the [offline installation guide](https://rust-lang.github.io/rustup/installation/other.html).
32+
2433
- The same checks can be run manually using the scripts in `ci/scripts`:
2534
- `./ci/scripts/python_lint.sh`
2635
- `./ci/scripts/rust_fmt.sh`

0 commit comments

Comments
 (0)