Skip to content

Commit

Permalink
spellcheck CI (#60)
Browse files Browse the repository at this point in the history
* spellcheck CI

* typos
  • Loading branch information
palday committed Nov 7, 2023
1 parent dcd8137 commit 9269fe9
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# adapted from https://github.com/JuliaDocs/Documenter.jl/blob/master/.github/workflows/SpellCheck.yml
# see docs at https://github.com/crate-ci/typos
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@v4
- name: Check spelling
uses: crate-ci/typos@master
with:
config: _typos.toml
write_changes: true
- uses: reviewdog/action-suggester@v1
with:
tool_name: Typos
fail_on_error: true
25 changes: 25 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# https://github.com/crate-ci/typos#false-positives
[default]

[default.extend-identifiers]
Lik = "Lik"
missings = "missings"
# misspelled in the car::Cowles dataset
Extraversion = "Extraversion"
extraversion = "extraversion"
Fo = "Fo"

[default.extend-words]
Lik = "Lik"
missings = "missings"


[type.package_toml]
# Don't check spellings in these files
extend-glob = ["Manifest.toml", "Project.toml"]
check-file = false

[type.bib]
# contain lots of names, which are a great spot for false positives
extend-glob = ["*.bib"]
check-file = false
2 changes: 1 addition & 1 deletion src/typical.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#=
Idea is: we have a model formula and a design dict of variables with reference values.
all teh terms that are not present in the design get "typified". we re-write the model
all the terms that are not present in the design get "typified". we re-write the model
formula replacing all the terms with their "typified" version where available.
then we call modelcols using this new formula + the reference grid
Expand Down

0 comments on commit 9269fe9

Please sign in to comment.