Skip to content

Commit

Permalink
Create typos.yaml (#42)
Browse files Browse the repository at this point in the history
* Create typos.yaml

* Does this make it run on the whole repo?

* remove trailing whitespace

* Delete .github/workflows/typos.yaml

trying to use typos in pre-commit instead

* Update .pre-commit-config.yaml

add typos to pre-commit

* fixed typos
  • Loading branch information
natemcintosh authored and gvegayon committed Mar 26, 2024
1 parent 80ed623 commit b00687c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ repos:
args: ['--baseline', '.secrets.baseline',
'--exclude-files', 'model/docs/']
exclude: package.lock.json
####
# Typos
- repo: https://github.com/crate-ci/typos
rev: v1.19.0
hooks:
- id: typos
2 changes: 1 addition & 1 deletion model/docs/getting-started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"\n",
"`pyrenew` has five main components:\n",
"\n",
"- Utilitiy and math functions,\n",
"- Utility and math functions,\n",
"- The `processes` sub-module,\n",
"- The `observations` sub-module,\n",
"- The `latent` sub-module, and\n",
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/metaclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def sample(
) -> tuple:
"""Sample method of the process
The method desing in the class should have two dictionaries:
The method design in the class should have two dictionaries:
`random_variables` and `constants`.
- `randon_variables`: This dictionary contains any data that sample
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/model/hospitalizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def sample(
if constants is None:
constants = dict()

# Getting the basline quantities from the basic model
# Getting the baseline quantities from the basic model
Rt, infections, *_ = self.basic_renewal.sample(
constants=constants,
random_variables=random_variables,
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/observation/negativebinomial.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(
Parameters
----------
concentration_prior : dist.Distribution | nummbers.nums
concentration_prior : dist.Distribution | numbers.nums
Numpyro distribution from which to sample the positive concentration
parameter of the negative binomial. This parameter is sometimes
called k, phi, or the "dispersion" or "overdispersion" parameter,
Expand Down
2 changes: 1 addition & 1 deletion model/src/pyrenew/process/simplerandomwalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SimpleRandomWalkProcess(RandomVariable):
"""
Class for a Markovian
random walk with an a
abitrary step distribution
arbitrary step distribution
"""

def __init__(
Expand Down

0 comments on commit b00687c

Please sign in to comment.