File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767 pass_filenames : false
6868
6969- id : rust-check
70- name : ' Run cargo check'
70+ name : ' Cargo check'
7171 entry : run-rust-check.sh
7272 language : ' script'
7373 files : Cargo\.toml|\.rs$
7676 description : ' Run cargo check against all features & targets'
7777
7878- id : rust-clippy
79- name : ' Run clippy lints'
79+ name : ' Clippy lints'
8080 entry : run-rust-clippy.sh
8181 language : ' script'
8282 files : Cargo\.toml|\.rs$
9393 minimum_pre_commit_version : 0.15.0
9494 description : ' Run cargo test in the repo root'
9595
96+ - id : rust-fmt
97+ name : ' Cargo fmt'
98+ entry : run-rust-fmt.sh
99+ language : ' script'
100+ files : \.rs$
101+ pass_filenames : false
102+ minimum_pre_commit_version : 0.15.0
103+ description : ' Run cargo fmt in the repo root'
104+
96105- id : r-stylr
97106 name : ' Format with stylr'
98107 entry : run-r-stylr.R
Original file line number Diff line number Diff line change 1515* ` rust-check ` : runs ` cargo check ` against all features & targets
1616* ` rust-clippy ` : runs ` cargo clippy ` lints in the repo root
1717* ` rust-test ` : runs ` cargo test ` at the repo root, includes all targets/features/examples/benches
18+ * ` rust-fmt ` : runs ` cargo fmt --all `
1819* ` r-stylr ` : runs [ ` stylr ` ] to format R code
1920* ` r-lintr ` : static analysis of R code with [ ` lintr ` ]
2021
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ cargo fmt --all
You can’t perform that action at this time.
0 commit comments