Skip to content

Commit 7fb1781

Browse files
authored
Freshen up dependencies (#7)
2 parents 8134808 + 2babc15 commit 7fb1781

File tree

5 files changed

+198
-188
lines changed

5 files changed

+198
-188
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
exclude: \.idea|test/remote-cases/
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v5.0.0
5+
rev: v6.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
@@ -12,7 +12,7 @@ repos:
1212
- id: check-toml
1313
- id: detect-private-key
1414
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.12.5
15+
rev: v0.13.0
1616
hooks:
1717
- id: ruff-check
1818
args: [ --fix ]

app/test_explain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async def test_process_request_success(self, sample_request, mock_anthropic_clie
107107

108108
# Verify the mock was called correctly
109109
mock_anthropic_client.messages.create.assert_called_once()
110-
args, kwargs = mock_anthropic_client.messages.create.call_args
110+
_args, kwargs = mock_anthropic_client.messages.create.call_args
111111

112112
# Check that key parameters were passed
113113
assert kwargs["model"] == test_prompt.model

app/test_model_costs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_opus_4_cost(self):
9292

9393
def test_unknown_model(self):
9494
"""Test that unknown models raise ValueError."""
95-
with pytest.raises(ValueError, match="Model family .* not found"):
95+
with pytest.raises(ValueError, match=r"Model family .* not found"):
9696
get_model_cost("claude-unknown-1-0")
9797

9898

pyproject.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,29 @@ description = "Explain Compiler Explorer output using AI"
55
readme = "README.md"
66
requires-python = ">=3.13"
77
dependencies = [
8-
"anthropic>=0.51.0",
8+
"anthropic>=0.67.0",
99
"aws-embedded-metrics>=3.3.0",
10-
"boto3>=1.35.0",
11-
"click>=8.1.0",
12-
"fastapi",
13-
"flask>=3.0.0",
10+
"boto3>=1.40.30",
11+
"click>=8.2.1",
12+
"fastapi>=0.116.1",
13+
"flask>=3.1.2",
1414
"humanfriendly>=10.0",
15-
"jinja2>=3.1.0",
16-
"mangum",
17-
"pydantic-settings>=2.9.1",
18-
"python-dotenv>=1.1.0",
19-
"requests>=2.31.0",
20-
"ruamel.yaml>=0.18.0",
15+
"jinja2>=3.1.6",
16+
"mangum>=0.19.0",
17+
"pydantic-settings>=2.10.1",
18+
"python-dotenv>=1.1.1",
19+
"requests>=2.32.5",
20+
"ruamel.yaml>=0.18.15",
2121
]
2222

2323
[dependency-groups]
2424
dev = [
2525
# In development mode, include the FastAPI development server.
26-
"fastapi[standard]>=0.115",
27-
"pre-commit>=4.2.0",
28-
"pytest>=8.3.5",
29-
"pytest-asyncio>=0.24.0",
30-
"ruff>=0.11.10",
26+
"fastapi[standard]>=0.116.1",
27+
"pre-commit>=4.3.0",
28+
"pytest>=8.4.2",
29+
"pytest-asyncio>=1.2.0",
30+
"ruff>=0.13.0",
3131
]
3232

3333
[tool.ruff]

0 commit comments

Comments
 (0)