From 4682b1ae2d20d895b7b4d75a9b6c89eab96a9b99 Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Tue, 15 Oct 2024 08:02:38 -0400 Subject: [PATCH 1/2] feat: setup typos in ci --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 096a0b5..49282a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,3 +122,21 @@ jobs: - name: Build documentation run: cargo doc --workspace --all-features --document-private-items --no-deps + + typos: + name: Check for typos + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Check for typos + id: typos + uses: crate-ci/typos@v1.26.0 + + - name: Print help on failure + if: ${{ failure() && steps.typos.conclusion == 'failure' }} + run: | + echo 'To fix typos, please run `typos -w`.' + echo 'To check for a diff, run `typos`.' + echo 'You can install `typos` at .' From b9ee120f137ed41d43ef1fa2d2da5d1d20deae69 Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Tue, 15 Oct 2024 20:31:02 -0400 Subject: [PATCH 2/2] fix: actual typos Hey, it's already working! --- src/external_cli/cargo/metadata.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/external_cli/cargo/metadata.rs b/src/external_cli/cargo/metadata.rs index b3372d6..960fc88 100644 --- a/src/external_cli/cargo/metadata.rs +++ b/src/external_cli/cargo/metadata.rs @@ -14,12 +14,12 @@ pub(crate) fn command() -> Command { command } -/// Try to obtain the Cargo metadata of this pacakge. +/// Try to obtain the Cargo metadata of this package. pub(crate) fn metadata() -> anyhow::Result { metadata_with_args::<[&str; 0], &str>([]) } -/// Try to obtain the Cargo metadata of this pacakge. +/// Try to obtain the Cargo metadata of this package. /// /// To see which additional args are available, [consult the `cargo metadata` documentation](https://doc.rust-lang.org/cargo/commands/cargo-metadata.html) /// or use `cargo metadata --help`.