Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create typos.yaml #42

Merged
6 commits merged into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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