Skip to content

Commit 053b14d

Browse files
authored
Spellcheck CI (#726)
* spellcheck CI * typos
1 parent 0dc3993 commit 053b14d

File tree

7 files changed

+48
-7
lines changed

7 files changed

+48
-7
lines changed

.github/workflows/spellcheck.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# adapted from https://github.com/JuliaDocs/Documenter.jl/blob/master/.github/workflows/SpellCheck.yml
2+
# see docs at https://github.com/crate-ci/typos
3+
name: Spell Check
4+
on: [pull_request]
5+
6+
jobs:
7+
typos-check:
8+
name: Spell Check with Typos
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Actions Repository
12+
uses: actions/checkout@v4
13+
- name: Check spelling
14+
uses: crate-ci/typos@master
15+
with:
16+
config: _typos.toml
17+
write_changes: true
18+
- uses: reviewdog/action-suggester@v1
19+
with:
20+
tool_name: Typos
21+
fail_on_error: true

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ MixedModels v4.22.0 Release Notes
22
==============================
33
* Support for equal-tail confidence intervals for `MixedModelBootstrap`. [#715]
44
* Basic `show` methods for `MixedModelBootstrap` and `MixedModelProfile`. [#715]
5-
* The `hide_progress` keyword argument to `parametricbootstrap` is now deprecated. Users should isntead use `progress` (which is consistent with e.g. `fit`). [#717]
5+
* The `hide_progress` keyword argument to `parametricbootstrap` is now deprecated. Users should instead use `progress` (which is consistent with e.g. `fit`). [#717]
66

77
MixedModels v4.21.0 Release Notes
88
==============================

_typos.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# https://github.com/crate-ci/typos#false-positives
2+
[default]
3+
4+
[default.extend-identifiers]
5+
Lik = "Lik"
6+
missings = "missings"
7+
8+
[default.extend-words]
9+
Lik = "Lik"
10+
missings = "missings"
11+
12+
[type.package_toml]
13+
# Don't check spellings in these files
14+
extend-glob = ["Manifest.toml", "Project.toml"]
15+
check-file = false
16+
17+
[type.bib]
18+
# contain lots of names, which are a great spot for false positives
19+
extend-glob = ["*.bib"]
20+
check-file = false

src/Xymat.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ end
4848
4949
Convenience constructor for a sparse [`FeTerm`](@ref) assuming full rank, identity pivot and unit weights.
5050
51-
Note: automatic rank deficiency handling may be added to this method in the future, as discused in
51+
Note: automatic rank deficiency handling may be added to this method in the future, as discussed in
5252
the vignette "[Rank deficiency in mixed-effects models](@ref)" for general `FeTerm`.
5353
"""
5454
function FeTerm(X::SparseMatrixCSC, cnms::AbstractVector{String})

src/bootstrap.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ end
7575
7676
Restore replicates from `f`, using `m` to create the desired subtype of [`MixedModelFitCollection`](@ref).
7777
78-
`f` can be any entity suppored by `Arrow.Table`. `m` does not have to be fitted, but it must have
78+
`f` can be any entity supported by `Arrow.Table`. `m` does not have to be fitted, but it must have
7979
been constructed with the same structure as the source of the saved replicates.
8080
8181
The two-argument method constructs a [`MixedModelBootstrap`](@ref) with the same eltype as `m`.
@@ -92,7 +92,7 @@ end
9292
# why this weird second method? it allows us to define custom types and write methods
9393
# to load into those types directly. For example, we could define a `PowerAnalysis <: MixedModelFitCollection`
9494
# in MixedModelsSim and then overload this method to get a convenient object.
95-
# Also, this allows us to write `restorereplicateS(f, m, ::Type{<:MixedModelNonparametricBoostrap})` for
95+
# Also, this allows us to write `restorereplicateS(f, m, ::Type{<:MixedModelNonparametricBootstrap})` for
9696
# entities in MixedModels bootstrap
9797
function restorereplicates(
9898
f, m::MixedModel, ctype::Type{<:MixedModelFitCollection{T}}
@@ -193,7 +193,7 @@ performance benefits.
193193
- `β`, `σ`, and `θ` are the values of `m`'s parameters for simulating the responses.
194194
- `σ` is only valid for `LinearMixedModel` and `GeneralizedLinearMixedModel` for
195195
families with a dispersion parameter.
196-
- `progress` controls whehter the progress bar is shown. Note that the progress
196+
- `progress` controls whether the progress bar is shown. Note that the progress
197197
bar is automatically disabled for non-interactive (i.e. logging) contexts.
198198
- `optsum_overrides` is used to override values of [OptSummary](@ref) in the models
199199
fit during the bootstrapping process. For example, `optsum_overrides=(;ftol_rel=1e-08)`

src/serialization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function restoreoptsum!(
1515
all(ops.lowerbd .≤ dict.initial) &&
1616
all(ops.lowerbd .≤ dict.final)
1717
if !okay
18-
throw(ArgumentError("initial or final parameters in io do not satify lowerbd"))
18+
throw(ArgumentError("initial or final parameters in io do not satisfy lowerbd"))
1919
end
2020
for fld in (:feval, :finitial, :fmin, :ftol_rel, :ftol_abs, :maxfeval, :nAGQ, :REML)
2121
setproperty!(ops, fld, getproperty(dict, fld))

test/FactorReTerm.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ end
185185
1 0 1 0
186186
1 0 0 1]
187187

188-
# implict intercept
188+
# implicit intercept
189189
ff = apply_schema(@formula(y ~ 1 + (f | g)), schema(dat), MixedModel)
190190
rem = modelcols(last(ff.rhs), dat)
191191
@test size(rem) == (18, 18)

0 commit comments

Comments
 (0)