From 1b32e2b1d365444ad7eab25215ce17a627fcbcef Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Mon, 4 Dec 2023 07:48:07 +0100 Subject: [PATCH] typos CI --- .github/workflows/SpellCheck.yml | 13 +++++++++++++ .typos.toml | 1 + src/interface.jl | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/SpellCheck.yml create mode 100644 .typos.toml diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml new file mode 100644 index 00000000..599253c8 --- /dev/null +++ b/.github/workflows/SpellCheck.yml @@ -0,0 +1,13 @@ +name: Spell Check + +on: [pull_request] + +jobs: + typos-check: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v3 + - name: Check spelling + uses: crate-ci/typos@v1.16.23 \ No newline at end of file diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 00000000..79b68a4c --- /dev/null +++ b/.typos.toml @@ -0,0 +1 @@ +[default.extend-words] \ No newline at end of file diff --git a/src/interface.jl b/src/interface.jl index 588e1bb0..e9f4e151 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -74,7 +74,7 @@ parameters(::Any) = [] $(TYPEDSIGNATURES) Find the index of the given sym in the given system. Default to the index of the first -symbol in the iterable retruned by `parameters` which matches the given `sym`. Return +symbol in the iterable returned by `parameters` which matches the given `sym`. Return `nothing` if the given `sym` does not match. """ function param_sym_to_index end