Skip to content

Commit

Permalink
[FEAT] add typos check / cache to CI (#23)
Browse files Browse the repository at this point in the history
* [FEAT] add typos check / cache to CI

* [FIX] clippy deny warnings
  • Loading branch information
makeecat authored Jan 12, 2025
1 parent 090438a commit 664745a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
Empty file added .config/_typos.toml
Empty file.
27 changes: 21 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,26 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --all-features --verbose
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
- name: Setup rust-cache
uses: Swatinem/rust-cache@v2
- name: Check Formating
run: cargo fmt --all -- --check
run: cargo +stable fmt --all -- --check
- name: Run Clippy
run: cargo clippy -- -D warnings
run: cargo +stable clippy --workspace --all-targets --all-features -- --deny warnings
- name: Build
run: cargo +stable build --workspace --all-targets --all-features
- name: Run tests
run: cargo +stable test --doc --workspace
typos:
name: Typos Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@master
with:
config: ./.config/_typos.toml
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ nalgebra = "0.33.2"
rand = { version = "0.8.5", features = ["rand_chacha"] }
rand_distr = "0.4.3"
rerun = "0.21.0"
thiserror = "2.0.7"
serde = { version = "1.0.216", features = ["derive"] }
thiserror = "2.0.11"
serde = { version = "1.0.217", features = ["derive"] }
serde_yaml = "0.9.34"
env_logger = "0.11.5"
env_logger = "0.11.6"
log = "0.4.22"
rayon = "1.10.0"
rand_chacha = "0.3.1"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ impl Imu {
/// PID controller for quadrotor position and attitude control
///
/// The kpid_pos and kpid_att gains are following the format of
/// porportional, derivative and integral gains
/// proportional, derivative and integral gains
/// # Example
/// ```
/// use nalgebra::Vector3;
Expand Down

0 comments on commit 664745a

Please sign in to comment.