From ae54dc862c978a28d95dbaf70216f0e6cbad8d55 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Thu, 7 Sep 2023 22:46:00 +0200 Subject: [PATCH] Move spellcheck config into `.github` folder (#10267) Keep the `.typos.toml` out of the repo root for better readability Also specify a version for the workflow to protect against breakage --- .typos.toml => .github/.typos.toml | 0 .github/workflows/typos.yml | 4 +++- toolkit.nu | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) rename .typos.toml => .github/.typos.toml (100%) diff --git a/.typos.toml b/.github/.typos.toml similarity index 100% rename from .typos.toml rename to .github/.typos.toml diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml index bcc7b12cfc..34ae99afb9 100644 --- a/.github/workflows/typos.yml +++ b/.github/workflows/typos.yml @@ -10,4 +10,6 @@ jobs: uses: actions/checkout@v3 - name: Check spelling - uses: crate-ci/typos@master + uses: crate-ci/typos@v1.0.4 + with: + config: ./.github/.typos.toml diff --git a/toolkit.nu b/toolkit.nu index 59d0daa957..5c3f0c8049 100644 --- a/toolkit.nu +++ b/toolkit.nu @@ -203,7 +203,7 @@ def report [ # # error: could not compile `nu-command` due to previous error # ``` -# - we remove the useless `.to_string()`, and in that cases, the whole format is useless, only `"x "` is usefull! +# - we remove the useless `.to_string()`, and in that cases, the whole format is useless, only `"x "` is useful! # but now the tests do not pass :sob: # ```nushell # running `toolkit fmt`