diff --git a/.codespell-ignore-words b/.codespell-ignore-words new file mode 100644 index 000000000..642de727d --- /dev/null +++ b/.codespell-ignore-words @@ -0,0 +1,15 @@ +blocs +bloc +inout +als +truns +pres +dum +fom +fromm +thi +nd +ue +bion +aas +checkin \ No newline at end of file diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 000000000..97f3aa407 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,5 @@ +[codespell] +skip = .git,*.ipynb,*.bib,*.ps,*.js,*.pdf +ignore-words = .codespell-ignore-words + + diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 000000000..d1454aceb --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,33 @@ +name: codespell + +on: + push: + branches: + - development + - main + pull_request: + branches: + - development + +jobs: + codespell: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: "pip" + + - name: Install dependencies + run: pip install -r ./requirements.txt + + - name: Run codespell + run: | + codespell + diff --git a/pyro/swe/unsplit_fluxes.py b/pyro/swe/unsplit_fluxes.py index 70b062d39..221cf699f 100644 --- a/pyro/swe/unsplit_fluxes.py +++ b/pyro/swe/unsplit_fluxes.py @@ -282,7 +282,7 @@ def unsplit_fluxes(my_data, rp, ivars, solid, tc, dt): """ finally, we can construct the state perpendicular to the interface - by adding the central difference part to the trasverse flux + by adding the central difference part to the transverse flux difference. The states that we represent by indices i,j are shown below diff --git a/requirements.txt b/requirements.txt index 289f388b2..1f6ff70cd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,3 +15,4 @@ sphinx-copybutton sphinx-prompt importlib-metadata prettytable +codespell