Skip to content

Commit 585ad8d

Browse files
authored
add codespell action (#205)
1 parent 6c84b5e commit 585ad8d

5 files changed

Lines changed: 55 additions & 1 deletion

File tree

.codespell-ignore-words

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
blocs
2+
bloc
3+
inout
4+
als
5+
truns
6+
pres
7+
dum
8+
fom
9+
fromm
10+
thi
11+
nd
12+
ue
13+
bion
14+
aas
15+
checkin

.codespellrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[codespell]
2+
skip = .git,*.ipynb,*.bib,*.ps,*.js,*.pdf
3+
ignore-words = .codespell-ignore-words
4+
5+

.github/workflows/codespell.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: codespell
2+
3+
on:
4+
push:
5+
branches:
6+
- development
7+
- main
8+
pull_request:
9+
branches:
10+
- development
11+
12+
jobs:
13+
codespell:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Setup Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.10'
25+
cache: "pip"
26+
27+
- name: Install dependencies
28+
run: pip install -r ./requirements.txt
29+
30+
- name: Run codespell
31+
run: |
32+
codespell
33+

pyro/swe/unsplit_fluxes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def unsplit_fluxes(my_data, rp, ivars, solid, tc, dt):
282282

283283
"""
284284
finally, we can construct the state perpendicular to the interface
285-
by adding the central difference part to the trasverse flux
285+
by adding the central difference part to the transverse flux
286286
difference.
287287
288288
The states that we represent by indices i,j are shown below

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ sphinx-copybutton
1515
sphinx-prompt
1616
importlib-metadata
1717
prettytable
18+
codespell

0 commit comments

Comments
 (0)