Skip to content

Commit 52bf565

Browse files
committed
Chore: Update pre-commit hooks, plus some spelling corrections.
1 parent 87aff4e commit 52bf565

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
name: (base:repo) debug-statements
2222
stages: [pre-commit]
2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.14.14
24+
rev: v0.15.9
2525
hooks:
2626
- id: ruff
2727
name: (base:repo) ruff
@@ -37,7 +37,7 @@ repos:
3737
name: (docs:repo) sphinx-lint
3838
stages: [pre-commit]
3939
- repo: https://github.com/biomejs/pre-commit
40-
rev: v2.3.13
40+
rev: v2.4.10
4141
hooks:
4242
- id: biome-check
4343
name: (webtools:repo) biome-check

ingredient_parser/en/_structure_features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SentenceStrucureFeatures:
6161
# A sequence of nouns or adjectives, optionally followed by a comma, repeating zero
6262
# or more times.
6363
# Followed by an optional conjunction or determinant.
64-
# Followed by an optional sequeunce nouns or adjectives.
64+
# Followed by an optional sequence nouns or adjectives.
6565
# Followed by a noun.
6666
example_parser = nltk.RegexpParser(r"""
6767
NP: {(<NN.*|JJ.*>+<,>?)*<CC|DT>?<NN.*|JJ.*>*<NN.*>}

train/training_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def take(n: int, iterable: Iterable) -> list:
156156

157157

158158
def select_preprocessor(lang: str) -> Any:
159-
"""Select appropraite PreProcessor class for given language.
159+
"""Select appropriate PreProcessor class for given language.
160160
161161
Parameters
162162
----------
@@ -171,7 +171,7 @@ def select_preprocessor(lang: str) -> Any:
171171
Raises
172172
------
173173
ValueError
174-
Selected langauage not supported
174+
Selected language not supported
175175
"""
176176
if lang not in SUPPORTED_LANGUAGES:
177177
raise ValueError(f'Unsupported language "{lang}"')

0 commit comments

Comments
 (0)