From dad044d1064fc2823d361cb75af6fd63f7193b58 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Tue, 1 Aug 2023 04:21:26 +0900 Subject: [PATCH] Integrate typos instead of CSpell --- .github/workflows/{dprint.yml => lint.yml} | 13 +++++++++++++ .vscode/extensions.json | 2 +- .vscode/settings.json | 5 +---- flake.nix | 1 + 4 files changed, 16 insertions(+), 5 deletions(-) rename .github/workflows/{dprint.yml => lint.yml} (50%) diff --git a/.github/workflows/dprint.yml b/.github/workflows/lint.yml similarity index 50% rename from .github/workflows/dprint.yml rename to .github/workflows/lint.yml index 5290e7c..967b292 100644 --- a/.github/workflows/dprint.yml +++ b/.github/workflows/lint.yml @@ -13,3 +13,16 @@ jobs: with: # Keep same version as used in *.nix dprint-version: '0.39.1' + + typos: + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # Keep same version as used in *.nix + - uses: crate-ci/typos@v1.16.1 + with: + files: | + . + .github + .vscode diff --git a/.vscode/extensions.json b/.vscode/extensions.json index b833a6e..61607a3 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -3,7 +3,7 @@ "github.vscode-github-actions", "editorconfig.editorconfig", "dprint.dprint", - "streetsidesoftware.code-spell-checker", + "tekumara.typos-vscode", "jnoortheen.nix-ide" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 5981f6f..8dbba70 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,8 +12,5 @@ "command": ["nixpkgs-fmt"] } } - }, - "cSpell.words": [ - "dprint" - ] + } } diff --git a/flake.nix b/flake.nix index 62a921c..7ea3157 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,7 @@ nixpkgs-fmt dprint actionlint + typos ]; }; }