Skip to content

Commit 9f0db0d

Browse files
committed
fix(lint): auto-fix all remaining ruff F-rule violations (F541 f-strings without placeholders)
1 parent 6362c9d commit 9f0db0d

14 files changed

Lines changed: 16 additions & 16 deletions

File tree

devguardian/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# 🛡️ DevGuardian Project — Core Module
2-
"""DevGuardian MCP Server - Package Init"""
2+
"""DevGuardian MCP Server - Package Init"""

devguardian/agents/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# 🛡️ DevGuardian Project — Core Module
2-
"""DevGuardian Agents Package"""
2+
"""DevGuardian Agents Package"""

devguardian/agents/engineer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ def should_continue(state: AgentState):
9191
workflow.add_conditional_edges("agent", should_continue)
9292
workflow.add_edge("tools", "agent")
9393

94-
return workflow.compile()
94+
return workflow.compile()

devguardian/agents/swarm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def coder_agent(state: SwarmState) -> SwarmState:
8383
**state,
8484
"code_draft": code,
8585
"messages": state.get("messages", []) + [
86-
HumanMessage(content=f"[Coder produced draft code]")
86+
HumanMessage(content="[Coder produced draft code]")
8787
],
8888
}
8989

@@ -206,4 +206,4 @@ async def run_swarm(task: str, project_path: str) -> str:
206206
f"## 🧪 Tester's Notes\n{test_notes}\n\n"
207207
f"---\n\n"
208208
f"{final}"
209-
)
209+
)

devguardian/tools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# 🛡️ DevGuardian Project — Core Module
2-
"""DevGuardian Tools Package"""
2+
"""DevGuardian Tools Package"""

devguardian/tools/code_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ def improve_code(
154154
f"\nImprove and refactor the following code:\n\n```\n{code}\n```\n\n"
155155
"Return the improved code and a clear summary of every change made."
156156
)
157-
return ask_gemini(prompt, system_instruction=_SYSTEM)
157+
return ask_gemini(prompt, system_instruction=_SYSTEM)

devguardian/tools/debugger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ def debug_error(
5959

6060
prompt += "\nPlease debug this and provide a clear fix."
6161

62-
return ask_gemini(prompt, system_instruction=_SYSTEM)
62+
return ask_gemini(prompt, system_instruction=_SYSTEM)

devguardian/tools/github_review.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ def review_pull_request(
122122
f"# 🌐 DevGuardian PR Review — #{pr_number}\n"
123123
f"**{title}** by @{author}\n\n"
124124
f"{review}"
125-
)
125+
)

devguardian/tools/infra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ def generate_ci(project_path: str, deploy_target: str = "") -> str:
116116
f"Written to: `.github/workflows/ci.yml`\n\n"
117117
f"```yaml\n{yaml_content[:1200]}\n```\n"
118118
+ ("*(truncated — see file for full content)*" if len(yaml_content) > 1200 else "")
119-
)
119+
)

devguardian/tools/mass_refactor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def mass_refactor(project_path: str, instruction: str) -> str:
6060
errors = []
6161

6262
report_parts = [
63-
f"## 🏗️ Mass Refactor Report\n",
63+
"## 🏗️ Mass Refactor Report\n",
6464
f"**Instruction:** `{instruction}`\n",
6565
f"**Scanning {len(all_py_files)} Python files...**\n\n",
6666
]
@@ -129,4 +129,4 @@ def mass_refactor(project_path: str, instruction: str) -> str:
129129
f"Run `git diff` to review changes before committing."
130130
)
131131

132-
return "\n".join(report_parts)
132+
return "\n".join(report_parts)

0 commit comments

Comments
 (0)