Skip to content

Commit 2a25ffa

Browse files
ci: Add codespell to find typos #753
GitHub Actions: Add codespell to find typos
2 parents e9c0fdb + 7226a79 commit 2a25ffa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/macOS-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
cancel-in-progress: false
3535
steps:
3636
- uses: actions/checkout@v3
37+
- name: Discover typos
38+
run: |
39+
pip3 install --upgrade pip
40+
pip3 install codespell
41+
codespell --count --ignore-words-list=ans,deriver,inout,packag --skip="*.js,*WordLists.swift"
3742
- name: Resolve dependencies
3843
run: swift package resolve
3944
- name: Build

Tests/web3swiftTests/localTests/EIP1559BlockTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class EIP1559BlockTests: LocalTestCase {
102102

103103
if tuple.is1559 {
104104
XCTAssertTrue(Web3.isEip1559Block(parent: parent, current: current),
105-
"Shoult not fail, got parent: \(parent.gasLimit), current: \(current.gasLimit)")
105+
"Should not fail, got parent: \(parent.gasLimit), current: \(current.gasLimit)")
106106
} else {
107107
XCTAssertFalse(Web3.isEip1559Block(parent: parent, current: current),
108108
"Should fail, got parent: \(parent.gasLimit), current: \(current.gasLimit)")

0 commit comments

Comments
 (0)