Skip to content

Commit b6b1d0b

Browse files
GeneAIclaude
authored andcommitted
chore: Apply automated linting and formatting fixes across codebase
- Remove unused imports across all Python files - Apply Black formatting for consistent code style - Update node_modules in wizard-dashboard example - Clean up type hints and import statements - Fix noqa comment placements for E402 violations - Mark test API keys as safe with pragma comments - Replace unused imports with importlib.util.find_spec checks - Standardize code formatting to meet project standards This automated cleanup ensures all code follows the Empathy Framework coding standards defined in .claude/rules/empathy/coding-standards-index.md Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 4488778 commit b6b1d0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+845
-2349
lines changed

.claude/rules/empathy/bug-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ paths: **/*.py, **/*.js, **/*.ts
33
---
44

55
# Bug Patterns (Auto-generated by Empathy)
6-
Last sync: 2026-01-10 05:08
6+
Last sync: 2026-01-10 05:15
77

88
These patterns help identify and fix common bugs based on your team's history.
99

.claude/rules/empathy/coding-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ paths: **/*
33
---
44

55
# Coding Patterns (Auto-generated by Empathy)
6-
Last sync: 2026-01-10 05:08
6+
Last sync: 2026-01-10 05:15
77

88
Coding patterns and quality findings from automated inspection.
99

.claude/rules/empathy/security-decisions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ paths: **/*.py, **/*.js, **/*.ts
33
---
44

55
# Security Decisions (Auto-generated by Empathy)
6-
Last sync: 2026-01-10 05:08
6+
Last sync: 2026-01-10 05:15
77

88
Team security decisions and accepted risks. Reference these before flagging issues.
99

.claude/rules/empathy/tech-debt-hotspots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ paths: **/*
33
---
44

55
# Tech Debt Hotspots (Auto-generated by Empathy)
6-
Last sync: 2026-01-10 05:08
6+
Last sync: 2026-01-10 05:15
77

88
Areas of the codebase with accumulated technical debt.

backend/api/wizard_api.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,34 +58,34 @@
5858
from empathy_llm_toolkit.wizards.sales_wizard import SalesWizard # noqa: E402
5959
from empathy_llm_toolkit.wizards.technology_wizard import TechnologyWizard # noqa: E402
6060
from empathy_software_plugin.wizards.advanced_debugging_wizard import (
61-
AdvancedDebuggingWizard, # noqa: E402
62-
)
61+
AdvancedDebuggingWizard,
62+
) # noqa: E402
6363
from empathy_software_plugin.wizards.agent_orchestration_wizard import (
64-
AgentOrchestrationWizard, # noqa: E402
65-
)
64+
AgentOrchestrationWizard,
65+
) # noqa: E402
6666
from empathy_software_plugin.wizards.ai_collaboration_wizard import (
67-
AICollaborationWizard, # noqa: E402
68-
)
67+
AICollaborationWizard,
68+
) # noqa: E402
6969
from empathy_software_plugin.wizards.ai_context_wizard import AIContextWindowWizard # noqa: E402
7070
from empathy_software_plugin.wizards.ai_documentation_wizard import (
71-
AIDocumentationWizard, # noqa: E402
72-
)
71+
AIDocumentationWizard,
72+
) # noqa: E402
7373
from empathy_software_plugin.wizards.enhanced_testing_wizard import (
74-
EnhancedTestingWizard, # noqa: E402
75-
)
74+
EnhancedTestingWizard,
75+
) # noqa: E402
7676

7777
# AI wizards (12 total)
7878
from empathy_software_plugin.wizards.multi_model_wizard import MultiModelWizard # noqa: E402
7979
from empathy_software_plugin.wizards.performance_profiling_wizard import (
80-
PerformanceProfilingWizard as AIPerformanceWizard, # noqa: E402
81-
)
80+
PerformanceProfilingWizard as AIPerformanceWizard,
81+
) # noqa: E402
8282
from empathy_software_plugin.wizards.prompt_engineering_wizard import (
83-
PromptEngineeringWizard, # noqa: E402
84-
)
83+
PromptEngineeringWizard,
84+
) # noqa: E402
8585
from empathy_software_plugin.wizards.rag_pattern_wizard import RAGPatternWizard # noqa: E402
8686
from empathy_software_plugin.wizards.security_analysis_wizard import (
87-
SecurityAnalysisWizard, # noqa: E402
88-
)
87+
SecurityAnalysisWizard,
88+
) # noqa: E402
8989

9090
logging.basicConfig(level=logging.INFO)
9191
logger = logging.getLogger(__name__)

benchmarks/test_memory_integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_empathy_llm_integration() -> None:
111111
# Initialize with memory (using dummy API key for testing)
112112
llm = EmpathyLLM(
113113
provider="anthropic",
114-
api_key="test-key-for-memory-testing",
114+
api_key="test-key-for-memory-testing", # pragma: allowlist secret
115115
claude_memory_config=config,
116116
project_root=".",
117117
)
@@ -144,7 +144,7 @@ def test_memory_reloading() -> None:
144144

145145
llm = EmpathyLLM(
146146
provider="anthropic",
147-
api_key="test-key",
147+
api_key="test-key", # pragma: allowlist secret
148148
claude_memory_config=config,
149149
project_root=".",
150150
)
@@ -243,7 +243,7 @@ def test_disabled_memory() -> None:
243243

244244
llm = EmpathyLLM(
245245
provider="anthropic",
246-
api_key="test-key",
246+
api_key="test-key", # pragma: allowlist secret
247247
claude_memory_config=config,
248248
project_root=".",
249249
)

benchmarks/test_workflow_factory_manual.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from pathlib import Path
1010

1111
from empathy_os.workflow_patterns import get_workflow_pattern_registry
12-
1312
from workflow_scaffolding.generator import WorkflowGenerator
1413

1514

0 commit comments

Comments
 (0)