Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Integrate typos instead of CSpell
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 15, 2023
1 parent a34f38e commit 1686f67
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ updates:
directory: '/'
schedule:
interval: 'weekly'
ignore:
- dependency-name: 'crate-ci/typos'
- package-ecosystem: 'gomod'
directory: '/'
schedule:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
name: Lint

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
dprint:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dprint/check@v2.2
with:
# Keep same version as *.nix
dprint-version: '0.36.1'

typos:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Keep same version as *.nix
- uses: crate-ci/typos@v1.15.0
with:
files: |
.
.github
.vscode
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"golang.go",
"github.vscode-github-actions",
"editorconfig.editorconfig",
"streetsidesoftware.code-spell-checker",
"tekumara.typos-vscode",
"dprint.dprint",
"jnoortheen.nix-ide",
"task.vscode-task"
Expand Down
9 changes: 1 addition & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,5 @@
},
"[go]": {
"editor.defaultFormatter": "golang.go"
},
"cSpell.words": [
"cachix",
"cmds",
"dprint",
"nixos",
"nixpkgs"
]
}
}
3 changes: 3 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ tasks:
- go test
fmt:
cmds:
- typos . .github .vscode --write-changes
- dprint fmt
- go fmt
- nixpkgs-fmt ./*.nix
Expand All @@ -28,6 +29,7 @@ tasks:
- dprint check
- go vet
- goreleaser check
- typos . .github .vscode
- nixpkgs-fmt --check ./*.nix
versions:
cmds:
Expand All @@ -36,3 +38,4 @@ tasks:
- go version
- dprint --version
- goreleaser --version
- typos --version
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ pkgs.mkShell {
pkgs.actionlint
pkgs.go-task
pkgs.goreleaser
pkgs.typos
];
}

0 comments on commit 1686f67

Please sign in to comment.