Skip to content

Commit f29de2c

Browse files
committed
Fix linting errors
1 parent c21179e commit f29de2c

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ include_trailing_comma = true
107107
[tool.ruff]
108108
line-length = 100
109109
target-version = "py38"
110+
111+
[tool.ruff.lint]
110112
select = [
111113
"E", # pycodestyle errors
112114
"W", # pycodestyle warnings

src/agentguard/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import logging
44
import time
5-
from datetime import datetime
65
from typing import Any, Awaitable, Callable, Dict, Optional, Union
76

87
import httpx

src/agentguard/policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Policy utilities for building and testing policies."""
22

3-
from typing import Any, Dict, List
3+
from typing import Any, Dict
44

55
from agentguard.types import Policy, PolicyTestResult
66

tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_client_initialization():
1111
api_key="test-key",
1212
ssa_url="http://localhost:3000"
1313
)
14-
14+
1515
assert guard.api_key == "test-key"
1616
assert guard.ssa_url == "http://localhost:3000"
1717
assert guard.timeout == 5.0
@@ -25,7 +25,7 @@ def test_client_with_custom_config():
2525
timeout=10.0,
2626
max_retries=5
2727
)
28-
28+
2929
assert guard.timeout == 10.0
3030
assert guard.max_retries == 5
3131

tests/test_policy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_policy_builder():
1616
)
1717
.build()
1818
)
19-
19+
2020
assert policy.name == "test-policy"
2121
assert policy.description == "Test policy description"
2222
assert len(policy.rules) == 1
@@ -41,7 +41,7 @@ def test_policy_builder_chaining():
4141
)
4242
.build()
4343
)
44-
44+
4545
assert len(policy.rules) == 2
4646

4747

@@ -59,11 +59,11 @@ def test_policy_tester():
5959
)
6060
.build()
6161
)
62-
62+
6363
result = tester.test_policy(
6464
policy=policy,
6565
request={"tool_name": "test", "parameters": {}}
6666
)
67-
67+
6868
assert result.decision is not None
6969
assert result.reason is not None

0 commit comments

Comments
 (0)