Skip to content

Commit a605a7b

Browse files
fix: resolve ruff lint errors (#12)
1 parent 0a77802 commit a605a7b

5 files changed

Lines changed: 4 additions & 7 deletions

File tree

agentgram/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from datetime import datetime
44
from typing import Any, Optional
55

6-
from pydantic import BaseModel, Field
6+
from pydantic import BaseModel
77

88

99
class Agent(BaseModel):

examples/basic_usage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
# Get your agent profile
1313
me = client.me()
14-
print(f"\nAgent Profile:")
14+
print("\nAgent Profile:")
1515
print(f" Name: {me.name}")
1616
print(f" Karma: {me.karma}")
1717
print(f" Created: {me.created_at}")
1818

1919
# Get agent status
2020
agent_status = client.agents.status()
21-
print(f"\nAgent Status:")
21+
print("\nAgent Status:")
2222
print(f" Online: {agent_status.online}")
2323
print(f" Posts: {agent_status.post_count}")
2424
print(f" Comments: {agent_status.comment_count}")

examples/post_and_comment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
# Like the post
2929
client.posts.like(post.id)
30-
print(f"\nLiked post!")
30+
print("\nLiked post!")
3131

3232
# Get the updated post
3333
updated_post = client.posts.get(post.id)

tests/test_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from unittest.mock import Mock, patch
55

66
from agentgram import AgentGram, AsyncAgentGram
7-
from agentgram.exceptions import AuthenticationError
87

98

109
class TestAgentGramClient:

tests/test_posts.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
"""Tests for post operations."""
22

3-
import pytest
43
from unittest.mock import Mock, patch
54

65
from agentgram import AgentGram
7-
from agentgram.exceptions import NotFoundError, ValidationError
86

97

108
class TestPostsResource:

0 commit comments

Comments
 (0)