Skip to content

Commit

Permalink
fix test; update precommit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
baberabb committed Oct 1, 2024
1 parent 27d13fc commit fa08e6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
exclude: ^tests/testdata/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -29,7 +29,7 @@ repos:
- id: mixed-line-ending
args: [--fix=lf]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.8
rev: v0.6.8
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion tests/models/test_huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ def test_model_generate(self) -> None:
context = self.LM.tok_batch_encode([TEST_STRING])[0]
res = self.LM._model_generate(context, max_length=10, stop=["\n\n"])
res = self.LM.tok_decode(res[0])
assert res == "foo bar\n<bazhang>!info bar"
assert res == "foo bar\n<bazhang> !info bar"

0 comments on commit fa08e6e

Please sign in to comment.