diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5dc5df313..639b71bf77 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,12 @@ env: RUSTFLAGS: -D warnings jobs: + typos: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: crate-ci/typos@v1.38.1 + test: runs-on: ubuntu-latest steps: diff --git a/lychee-bin/tests/cli.rs b/lychee-bin/tests/cli.rs index 216f36eb59..18e6517df5 100644 --- a/lychee-bin/tests/cli.rs +++ b/lychee-bin/tests/cli.rs @@ -2740,7 +2740,7 @@ mod cli { .stderr(contains("https://example.com/example_dir/md")) // TS files in example_dir are ignored because we did not specify that extension. .stderr(contains("https://example.com/example_dir/ts ").not()) - // TSX files in examle_dir are ignored because we did not specify that extension. + // TSX files in example_dir are ignored because we did not specify that extension. .stderr(contains("https://example.com/example_dir/tsx").not()); } diff --git a/lychee-lib/src/archive/wayback/mod.rs b/lychee-lib/src/archive/wayback/mod.rs index ba427d8b0d..c19edb38ba 100644 --- a/lychee-lib/src/archive/wayback/mod.rs +++ b/lychee-lib/src/archive/wayback/mod.rs @@ -86,7 +86,7 @@ mod tests { #[tokio::test] /// Test retrieval by mocking the Wayback API. - /// We mock their API beacuse unfortuantely it happens quite often that the + /// We mock their API because unfortunately it happens quite often that the /// `archived_snapshots` field is empty because the API is unreliable. /// This way we avoid flaky tests. async fn wayback_suggestion_mocked() -> Result<(), Box> { @@ -166,7 +166,7 @@ mod tests { #[tokio::test] /// This tests the real Wayback API without any mocks. - /// The flakyness of the API shouldn't affect this test because it originates from + /// The flakiness of the API shouldn't affect this test because it originates from /// the `archived_snapshots` field. async fn wayback_suggestion_real_unknown() -> Result<(), Box> { let url = &"https://github.com/mre/idiomatic-rust-doesnt-exist-man".try_into()?; diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000000..9faaf8dab3 --- /dev/null +++ b/typos.toml @@ -0,0 +1,5 @@ +[files] +extend-exclude = ["assets/screencast.svg", "fixtures/bench"] + +[default.extend-words] +excluder = "excluder"