File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed
Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,18 @@ There is one "run everything" [just] recipe:
3030just check
3131```
3232
33+ Some common issues can be auto-fixed by running:
34+
35+ ``` console
36+ just fix
37+ ```
38+
3339If this doesn't work, see [ "Troubleshooting"] ( #troubleshooting ) .
3440
3541To list all recipes that are available, run:
3642
3743``` console
38- just --list --list-submodules
44+ just
3945```
4046
4147## CI
Original file line number Diff line number Diff line change 11mod guests
22
3+ # default Just target - list recipes
4+ default :
5+ @ just --list --list-submodules
6+
37# check Rust files via `cargo build`
48check-rust-build : guests ::rust ::check-build guests ::python ::check-build
59
@@ -56,3 +60,36 @@ check-yaml:
5660
5761# run ALL checks
5862check : check-rust check-yaml
63+
64+ # clean Rust build artifacts
65+ clean -rust:
66+ @ echo ::group::clean -rust
67+ cargo clean
68+ @ echo ::endgroup::
69+
70+ # clean build artifacts
71+ clean : clean -rust guests::python::clean
72+
73+ # fix Rust check/rustc warnings
74+ fix-rust-check :
75+ @ echo ::group::fix-rust-check
76+ cargo fix --workspace --allow-dirty --allow-staged
77+ @ echo ::endgroup::
78+
79+ # fix Rust clippy warnings
80+ fix-rust-clippy :
81+ @ echo ::group::fix-rust-clippy
82+ cargo clippy --all-targets --all-features --workspace --fix --allow-dirty --allow-staged
83+ @ echo ::endgroup::
84+
85+ # fix Rust formatting
86+ fix-rust-fmt :
87+ @ echo ::group::fix-rust-fmt
88+ cargo fmt --all
89+ @ echo ::endgroup::
90+
91+ # fix common Rust issues automatically
92+ fix-rust : fix-rust-clippy fix-rust-check fix-rust-fmt
93+
94+ # fix common issues automatically
95+ fix : fix-rust
Original file line number Diff line number Diff line change @@ -128,3 +128,9 @@ release: (do "release")
128128
129129# checks build
130130check-build : debug
131+
132+ # clean build artifacts
133+ clean :
134+ @ echo ::group::guests::python::clean
135+ rm -rf {{ DOWNLOADS_DIR}}
136+ @ echo ::endgroup::
You can’t perform that action at this time.
0 commit comments