Skip to content

Commit f7ead56

Browse files
committed
Use homespun version of codespell GitHub action.
1 parent 58b1406 commit f7ead56

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

.codespell-dict

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sectoin->section
File renamed without changes.

.github/scripts/codespell_annotations.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ def _parse_args():
1111
type=str,
1212
help="Path to a file containing exclude patterns for codespell."
1313
)
14+
15+
parser.add_argument(
16+
"--dictionary",
17+
action='append',
18+
type=str,
19+
help="Path to a file containing custom spelling corrections for codespell or '-' for default dictionary."
20+
)
1421
parser.add_argument(
1522
"--skip",
1623
type=str,
@@ -29,6 +36,9 @@ def run_codespell_and_create_annotations(args):
2936
command.extend(["--exclude-file", args.exclude_file])
3037
if args.skip:
3138
command.extend(["--skip", args.skip])
39+
if args.dictionary:
40+
for dict_path in args.dictionary:
41+
command.extend(["--dictionary", dict_path])
3242

3343
print(f"Running command: {' '.join(command)}")
3444

.github/workflows/spell-check.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
- name: Install codespell
1919
run: pip install codespell
2020

21-
- name: Run codespell
22-
run: codespell --exclude-file=".codespellexclude" --skip="./.git,./tests/gtest/include/gtest/gtest.h,./tests/gtest/src/gtest-all.cc,./src/dtds/mathml2/*"
23-
2421
- name: Create spelling annotations
2522
run: python .github/scripts/codespell_annotations.py
23+
--exclude-file=".codespellexclude" --skip="./.git,./tests/gtest/include/gtest/gtest.h,./tests/gtest/src/gtest-all.cc,./src/dtds/mathml2/*"

docs/setup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Development setup
55
=================
66

7-
This section describes how someone wanting to contribute to the libCellML project should set up their *working copy* for developing libCellML.
7+
This sectoin describes how someone wanting to contribute to the libCellML project should set up their *working copy* for developing libCellML.
88

99
Overview
1010
========

0 commit comments

Comments
 (0)