Skip to content

Commit 7c0a2f0

Browse files
authored
Merge pull request #16 from sbu-python-class/codespell
setup codespell action
2 parents d22d920 + 9fd2fba commit 7c0a2f0

82 files changed

Lines changed: 51 additions & 7845 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[codespell]
2-
skip = .git,*.bib,*.ps,*.js,*.pdf,_build,*.fodp,*.fods
2+
skip = .git,*.bib,*.ps,*.js,*.pdf,_build,*.fodp,*.fods,other,*.sty
33
ignore-words = .codespell-ignore-words
44

55

.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+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
codespell:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: Setup Python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version: '3.14'
22+
cache: "pip"
23+
24+
- name: Install codespell
25+
run: pip install codespell jupyterlab nbconvert
26+
27+
- name: Preprocess notebooks
28+
run: for i in $(find . -name "*.ipynb"); do jupyter nbconvert --clear-output --inplace $i; done
29+
30+
- name: Run codespell
31+
run: |
32+
codespell content
33+

content/01-python/w1-python-datatypes.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@
784784
"https://docs.python.org/3/reference/expressions.html#operator-precedence\n",
785785
" \n",
786786
"in order of precedence:\n",
787-
"* quantites in `()`\n",
787+
"* quantities in `()`\n",
788788
"* slicing, calls, subscripts\n",
789789
"* exponentiation (`**`)\n",
790790
"* `+x`, `-x`, `~x`\n",

content/09-packages/python-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The python packaging system is constantly evolving, and the current recommendati
99
of tools is list here: https://packaging.python.org/en/latest/guides/tool-recommendations/
1010
```
1111

12-
![xkcd](python_environment.png)
12+
![xkcd comic on python packaging chaos](python_environment.png)
1313

1414
(from https://xkcd.com)
1515

content/11-machine-learning/neural-net-basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Our goal is to determine the matrix elements of ${\bf A}$.
4343

4444
We can visualize a neural network as:
4545

46-
![NN diagram](nn_fig.png)
46+
![neural network diagram showing nodes in layers linked](nn_fig.png)
4747

4848
* Neural networks are divided into _layers_
4949

content/11-machine-learning/neural-net-hidden.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
We can get better performance from a neural network by adding a hidden layer:
55

6-
![hidden layers](nn_fig_hidden.png)
6+
![neutron network diagram showing a single hidden layer](nn_fig_hidden.png)
77

88
The size of the hidden layer is independent of the size of the input and output
99
layers. In this case, we have a hidden layer that is larger

content/Introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PHY 546: Python for Scientific Computing
22

3-
![xkcd](01-python/python.png)
3+
![xkcd python cartoon](01-python/python.png)
44

55
(from https://xkcd.com)
66

content/git/version-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You can follow the instructions from the [Software Carpentry lessons](https://ca
66
77
* Windows: use [git for Windows](https://gitforwindows.org/)
88
9-
* Mac: in a teminal, do:
9+
* Mac: in a terminal, do:
1010
1111
```
1212
git --version

docs/.nojekyll

Whitespace-only changes.

docs/LICENSE.txt

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)