Skip to content

Commit

Permalink
Use golangci-lint for codespell (prometheus#535)
Browse files Browse the repository at this point in the history
* Remove Python codespell check.
* Enable misspell golanci-lint linter.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ authored and jritter committed Jul 15, 2024
1 parent a7e4ac5 commit ec0af41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
10 changes: 0 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ jobs:
steps:
- run: make test

codespell:
docker:
- image: circleci/python

steps:
- checkout
- run: sudo pip install codespell
- run: codespell --skip=".git,./vendor,ttar,fixtures.ttar,./fixtures,go.mod,go.sum" -I scripts/codespell_ignore.txt

workflows:
version: 2
procfs:
Expand All @@ -66,4 +57,3 @@ workflows:
go_version:
- "1.19"
- "1.20"
- codespell
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
linters:
enable:
- godot
- misspell
- revive

linter-settings:
Expand All @@ -10,3 +11,5 @@ linter-settings:
exclude:
# Ignore "See: URL"
- 'See:'
misspell:
locale: US
11 changes: 0 additions & 11 deletions scripts/codespell_ignore.txt

This file was deleted.

0 comments on commit ec0af41

Please sign in to comment.