Skip to content

Commit 90171f9

Browse files
authored
Update dependencies, and fix ruff comments (#18)
1 parent c28b471 commit 90171f9

9 files changed

Lines changed: 1137 additions & 351 deletions

File tree

builtin_plugins/vera_google_sheets_report/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ requires-python = ">=3.14"
1010
license-files = ["LICENSE"]
1111
license = "Apache-2.0"
1212
dependencies = [
13-
"google-api-python-client>=2.187.0",
13+
"google-api-python-client>=2.190.0",
1414
"google-auth-httplib2>=0.3.0",
15-
"google-auth-oauthlib>=1.2.3",
15+
"google-auth-oauthlib>=1.2.4",
1616
"vera>=1.0.0",
1717
]
1818
keywords = [

builtin_plugins/vera_google_sheets_report/uv.lock

Lines changed: 376 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin_example/vera_sql_query_assistant/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ requires-python = ">=3.14"
1010
license-files = ["LICENSE"]
1111
license = "Apache-2.0"
1212
dependencies = [
13-
"anyio>=4.12.0",
13+
"anyio>=4.12.1",
1414
"pydantic>=2.12.5",
1515
"pyyaml>=6.0.3",
1616
"vera>=1.0.0",
@@ -33,8 +33,8 @@ Repository = "https://github.com/google/vera"
3333
[dependency-groups]
3434
dev = [
3535
"pytest>=9.0.2",
36-
"ruff>=0.15.0",
37-
"ty>=0.0.15",
36+
"ruff>=0.15.2",
37+
"ty>=0.0.18",
3838
]
3939

4040
[project.entry-points.vera]

plugin_example/vera_sql_query_assistant/tests/test_vera_sql_query_assistant/test_sql_assistant.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424

2525
def test_average() -> None:
26-
assert average(1, 2, 3, 4, 5) == 3.0
27-
assert average(5, 5) == 5.0
28-
assert average(1, 5) == 3.0
26+
assert average(1, 2, 3, 4, 5) == 3
27+
assert average(5, 5) == 5
28+
assert average(1, 5) == 3
2929

3030

3131
def test_bool_score_to_int_score() -> None:

plugin_example/vera_sql_query_assistant/uv.lock

Lines changed: 371 additions & 109 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vera/pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "vera"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
description = "Powerful AI Test Engine for Features"
55
readme = "README.md"
66
authors = [
@@ -10,15 +10,15 @@ requires-python = ">=3.14"
1010
license-files = ["LICENSE"]
1111
license = "Apache-2.0"
1212
dependencies = [
13-
"anyio>=4.12.0",
14-
"google-genai>=1.55.0",
15-
"platformdirs>=4.5.1",
13+
"anyio>=4.12.1",
14+
"google-genai>=1.64.0",
15+
"platformdirs>=4.9.2",
1616
"pluggy>=1.6.0",
1717
"pydantic>=2.12.5",
1818
"pyyaml>=6.0.3",
19-
"rich>=14.2.0",
20-
"tenacity>=9.1.2",
21-
"typer>=0.20.1",
19+
"rich>=14.3.3",
20+
"tenacity>=9.1.4",
21+
"typer>=0.24.1",
2222
]
2323
keywords = [
2424
"vera",
@@ -47,8 +47,8 @@ Repository = "https://github.com/google/vera"
4747
dev = [
4848
"pytest>=9.0.2",
4949
"pytest-mock>=3.15.1",
50-
"ruff>=0.15.0",
51-
"ty>=0.0.15",
50+
"ruff>=0.15.2",
51+
"ty>=0.0.18",
5252
]
5353

5454
[project.scripts]

vera/tests/test_vera/test_core/test_data_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ def test_csv_row_logic() -> None:
103103
row = MockRow.from_columns(tc, out, llm_cols, static_cols)
104104
assert row.score == 5
105105
assert row.passed is True
106-
assert row.final_score == 5.0
106+
assert row.final_score == 5
107107

108108
static_cols_fail = MockStaticColumn(passed=False)
109109
row_fail = MockRow.from_columns(tc, out, llm_cols, static_cols_fail)
110-
assert row_fail.final_score == 0.0
110+
assert row_fail.final_score == 0

vera/tests/test_vera/test_vera_test/test_evaluate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
1514
import asyncio
1615
import contextlib
16+
import math
1717
from typing import Any, Never, Self, override
1818
from unittest.mock import AsyncMock, MagicMock
1919

@@ -89,8 +89,8 @@ async def test_evaluation_service_evaluate() -> None:
8989

9090
await es.run_tests()
9191
assert len(es.csv_rows) == 1
92-
assert es.csv_rows[0].final_score == 1.0
93-
assert cli_service.overall_advances == 1.0
92+
assert math.isclose(es.csv_rows[0].final_score, 1.0, abs_tol=0.001)
93+
assert math.isclose(cli_service.overall_advances, 1.0, abs_tol=0.001)
9494

9595

9696
@pytest.mark.anyio

vera/uv.lock

Lines changed: 368 additions & 106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)