From ba00f58bbd0d96386484e5a8e0883ee4c969657a Mon Sep 17 00:00:00 2001 From: Arno Strouwen Date: Wed, 13 Dec 2023 01:17:32 +0100 Subject: [PATCH] typos CI --- .github/dependabot.yml | 5 ++++- .github/workflows/SpellCheck.yml | 13 +++++++++++++ .typos.toml | 4 ++++ src/error_hints.jl | 2 +- src/logexpfunctions-lib.jl | 2 +- src/wrapper-types.jl | 2 +- 6 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/SpellCheck.yml create mode 100644 .typos.toml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d60f0707f..1e8a051e2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,4 +4,7 @@ updates: - package-ecosystem: "github-actions" directory: "/" # Location of package manifests schedule: - interval: "monthly" + interval: "weekly" + ignore: + - dependency-name: "crate-ci/typos" + update-types: ["version-update:semver-patch"] diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml new file mode 100644 index 000000000..599253c8c --- /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 000000000..66edbcbaf --- /dev/null +++ b/.typos.toml @@ -0,0 +1,4 @@ +[default.extend-words] +numer = "numer" +Commun = "Commun" +nd = "nd" \ No newline at end of file diff --git a/src/error_hints.jl b/src/error_hints.jl index 3782ac8c0..c9d7ae70e 100644 --- a/src/error_hints.jl +++ b/src/error_hints.jl @@ -1,6 +1,6 @@ const FLOAT_NUM_CONVERSION_ERROR = """ -An implict conversion of symbolic Num into a Float64 was encountered. Common causes for this error include: +An implicit conversion of symbolic Num into a Float64 was encountered. Common causes for this error include: 1. A substitution resulted in numerical values, but is not automatically converted to numerical values. For example: diff --git a/src/logexpfunctions-lib.jl b/src/logexpfunctions-lib.jl index 95cc6f94b..64610b6ff 100644 --- a/src/logexpfunctions-lib.jl +++ b/src/logexpfunctions-lib.jl @@ -1,4 +1,4 @@ -# Implement a few of the LogExpFuncitons methods when those rely on boolean workflows. +# Implement a few of the LogExpFunctions methods when those rely on boolean workflows. LogExpFunctions.log1mexp(x::RCNum) = log(1 - exp(x)) LogExpFunctions.log1pexp(x::RCNum) = log(1 + exp(x)) diff --git a/src/wrapper-types.jl b/src/wrapper-types.jl index 8d388b263..e5b1bb0fe 100644 --- a/src/wrapper-types.jl +++ b/src/wrapper-types.jl @@ -106,7 +106,7 @@ function wrap_func_expr(mod, expr) # # (1) T (2) wrapper_type(T) (3) Symbolic{T} # - # However later while emiting methods we omit the one + # However later while emitting methods we omit the one # method where all arguments are (1) since those are # expected to be defined outside Symbolics if arg isa Expr && arg.head == :(::)