Skip to content

Commit 08b86b5

Browse files
authored
One-time linting for examples folder (#27)
1 parent f5fdd48 commit 08b86b5

File tree

7 files changed

+14
-3
lines changed

7 files changed

+14
-3
lines changed

examples/anyagent/__init__.py

Whitespace-only changes.

examples/anyagent/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Example demonstrating mcpd SDK integration with AnyAgent framework."""
2+
13
import os
24

35
import requests

examples/manual/__init__.py

Whitespace-only changes.

examples/manual/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Example demonstrating manual tool execution with mcpd SDK."""
2+
13
import json
24
import os
35

examples/pydantic-ai/__init__.py

Whitespace-only changes.

examples/pydantic-ai/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Example demonstrating mcpd SDK integration with Pydantic AI framework."""
2+
13
import os
24

35
import requests

examples/readme_maker/readme_maker.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Example demonstrating README generation using mcpd SDK with AI agents."""
2+
13
from dotenv import load_dotenv
24
from mcpd import McpdClient
35
from pydantic_ai import Agent
@@ -21,7 +23,8 @@
2123
)
2224

2325
input_repo_readme = input(
24-
"(Optional) Enter the GitHub repository (in the format owner/repo-name) to use its README as a template (press Enter to let the LLM define the structure): "
26+
"(Optional) Enter the GitHub repository (in the format owner/repo-name) to use its README "
27+
"as a template (press Enter to let the LLM define the structure): "
2528
)
2629

2730
prompt = f"""
@@ -62,8 +65,10 @@
6265
When providing code snippets for this task, follow the guidelines for code modifications:
6366
6467
- Always specify the language and file name in the info string of code blocks (e.g., python src/main.py).
65-
- For code modifications, use concise snippets that highlight the necessary changes, with abbreviated placeholders for unmodified sections.
66-
- When editing existing files, restate the relevant function or class and use 'lazy' comments to omit unmodified portions.
68+
- For code modifications, use concise snippets that highlight the necessary changes, with abbreviated
69+
placeholders for unmodified sections.
70+
- When editing existing files, restate the relevant function or class and use 'lazy' comments to omit
71+
unmodified portions.
6772
6873
Please provide a concise explanation of the changes made unless explicitly asked for code only
6974
"""

0 commit comments

Comments
 (0)