Skip to content

Commit 0a50ef0

Browse files
authored
add spellcheck and run (#79)
1 parent dbee224 commit 0a50ef0

File tree

6 files changed

+47
-5
lines changed

6 files changed

+47
-5
lines changed

Diff for: .github/config/.codespellignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cips
2+
pullrequest
3+
keypair
4+
pastTime
5+
hasTables
6+
Nam
7+
EyT
8+
upTo
9+
initia
10+
minitia
11+
expRes
12+
crate
13+
totalIn
14+
totalOut

Diff for: .github/workflows/spellcheck.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Spell Check
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
spellcheck:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Run codespell
13+
continue-on-error: true
14+
run: |
15+
sudo apt-get install codespell -y
16+
codespell -w --skip="*.pulsar.go,*.pb.go,*.pb.gw.go,*.cosmos_orm.go,*.json,*.git,*.js,crypto/keys,fuzz,*.h,proto/tendermint,*.bin,go.sum,go.work.sum,go.mod,statik.go,*.map,swagger.yaml" --ignore-words=.github/config/.codespellignore
17+
- uses: peter-evans/[email protected]
18+
if: github.event_name != 'pull_request'
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
commit-message: "chore: fix typos"
22+
title: "chore: fix typos"
23+
branch: "chore/fix-typos"
24+
delete-branch: true
25+
body: |
26+
This PR fixes typos in the codebase.
27+
Please review it, and merge if everything is fine.
28+
If there are proto changes, run `make proto-gen` and commit the changes.

Diff for: Dockerfile.arm64

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM arm64v8/golang:1.22-bullseye AS go-builder
33
# Install minimum necessary dependencies, build Cosmos SDK, remove packages
44
RUN apt update
55
RUN apt install -y curl git build-essential
6-
# debug: for live editting in the image
6+
# debug: for live editing in the image
77
RUN apt install -y vim
88

99
WORKDIR /code

Diff for: app/keepers/keepers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func NewAppKeeper(
244244
appKeepers.OracleKeeper = &oracleKeeper
245245

246246
// Add the oracle keeper as a hook to market map keeper so new market map entries can be created
247-
// and propogated to the oracle keeper.
247+
// and propagated to the oracle keeper.
248248
appKeepers.MarketMapKeeper.SetHooks(appKeepers.OracleKeeper.Hooks())
249249

250250
appKeepers.OPChildKeeper = opchildkeeper.NewKeeper(

Diff for: contrib/devtools/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ tools-stamp: statik runsim
5757
touch $@
5858

5959
# Install the runsim binary with a temporary workaround of entering an outside
60-
# directory as the "go install" command ignores the -mod option and will polute the
60+
# directory as the "go install" command ignores the -mod option and will pollute the
6161
# go.{mod, sum} files.
6262
#
6363
# ref: https://github.com/golang/go/issues/30515
@@ -67,7 +67,7 @@ $(STATIK):
6767
@(cd /tmp && go install github.com/rakyll/[email protected])
6868

6969
# Install the runsim binary with a temporary workaround of entering an outside
70-
# directory as the "go install" command ignores the -mod option and will polute the
70+
# directory as the "go install" command ignores the -mod option and will pollute the
7171
# go.{mod, sum} files.
7272
#
7373
# ref: https://github.com/golang/go/issues/30515

Diff for: shared.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM golang:1.22-bullseye AS go-builder
33
# Install minimum necessary dependencies, build Cosmos SDK, remove packages
44
RUN apt update
55
RUN apt install -y curl git build-essential
6-
# debug: for live editting in the image
6+
# debug: for live editing in the image
77
RUN apt install -y vim
88

99
WORKDIR /code

0 commit comments

Comments
 (0)