Skip to content

Commit

Permalink
build(deps): Update simpleeval requirement from <1.0,>=0.9.13 to >=0.…
Browse files Browse the repository at this point in the history
…9.13,<2.0 (#369)

* build(deps): Update simpleeval requirement

Updates the requirements on [simpleeval](https://github.com/danthedeckie/simpleeval) to permit the latest version.
- [Release notes](https://github.com/danthedeckie/simpleeval/releases)
- [Commits](danthedeckie/simpleeval@0.9.13...1.0.0)

---
updated-dependencies:
- dependency-name: simpleeval
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix error message

Signed-off-by: Anh Uong <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Anh Uong <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anh Uong <[email protected]>
  • Loading branch information
dependabot[bot] and anhuong authored Feb 20, 2025
1 parent fb3ace8 commit 87d987a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies = [
"peft>=0.8.0,<0.14",
"protobuf>=5.28.0,<6.0.0",
"datasets>=2.15.0,<3.0",
"simpleeval>=0.9.13,<1.0",
"simpleeval>=0.9.13,<2.0",
]

[project.optional-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions tests/utils/test_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ def test_mailicious_inputs_to_eval():
"getattr((), '_' '_class_' '_')",
),
(
"Sorry, I will not evalute something that long.",
"Sorry, I will not evaluate something that long.",
False,
'["hello"]*10000000000',
),
(
"Sorry, I will not evalute something that long.",
"Sorry, I will not evaluate something that long.",
False,
"'i want to break free'.split() * 9999999999",
),
Expand Down

0 comments on commit 87d987a

Please sign in to comment.