Skip to content

Commit 562a65d

Browse files
committed
add codespell action
1 parent 7620af5 commit 562a65d

File tree

7 files changed

+52
-3
lines changed

7 files changed

+52
-3
lines changed

.codespell-ignore-words

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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
16+
indx

.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
3+
ignore-words = .codespell-ignore-words
4+
5+

.github/workflows/codespell.yml

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

job_scripts/summit/run_amrex_gpu_tutorials.summit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ SMPIARGS+=" --smpiargs="-x PAMI_DISABLE_CUDA_HOOK=1 -disable_gpu_hooks""
7373
# Reserves memory for storing profiling data for non-CDP operations for each buffer on a
7474
# context. The default value is 8MB.
7575
# Ensures sufficient memory so that profiling information written to stdout is reported
76-
# in cases wher HBM is over-subscribed (large memory problems).
76+
# in cases where HBM is over-subscribed (large memory problems).
7777

7878
# Example run lines
7979
# =====================

job_scripts/summit/summit_template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ INPUTS=inputs_luna
2121
n_res=480 # The max allocated number of resource sets is
2222
n_cpu_cores_per_res=1 # nnodes * n_max_res_per_node. In this case we will
2323
n_mpi_per_res=1 # use all the allocated resource sets to run the job below,
24-
n_gpu_per_res=1 # however we can define more enviroment variables to allocate two jobs
24+
n_gpu_per_res=1 # however we can define more environment variables to allocate two jobs
2525
n_max_res_per_node=6 # simultaneous jobs, where n_res = n_res_1 + n_res2 allocates for two jobs.
2626

2727
function find_chk_file {

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ numpydoc
55
more_itertools
66
sphinx-prompt
77
sphinx-copybutton
8+
9+
codespell

wdmerger/run_utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function get_remaining_walltime {
434434

435435
elif [ $batch_system == "SLURM" ]; then
436436

437-
# For SLURM we need to subtract the run time from the total alloted time.
437+
# For SLURM we need to subtract the run time from the total allotted time.
438438

439439
total_time=$(squeue -l -u $USER | grep $job_number | awk '{ print $7 }')
440440
total_time=$(hours_to_seconds $total_time)

0 commit comments

Comments
 (0)