-
Notifications
You must be signed in to change notification settings - Fork 15
fix: discover installed adapter descriptors #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -95,7 +95,9 @@ async def _wait_for(event: threading.Event, timeout: float = 2.0) -> bool: | |||||||||||||
| def mock_native_fixture() -> MagicMock: | ||||||||||||||
| mock_native = MagicMock() | ||||||||||||||
| mock_native.requests = [] | ||||||||||||||
| mock_native.plan_config.side_effect = lambda config_json, base_dir: json.dumps(_plan()) | ||||||||||||||
| mock_native.plan_config.side_effect = ( | ||||||||||||||
| lambda config_json, base_dir, adapter_descriptors: json.dumps(_plan()) | ||||||||||||||
| ) | ||||||||||||||
|
Comment on lines
+98
to
+100
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Avoid the new Ruff violations. Line 99 reports Proposed fix- lambda config_json, base_dir, adapter_descriptors: json.dumps(_plan())
+ lambda _config_json, _base_dir, _adapter_descriptors: json.dumps(_plan())📝 Committable suggestion
Suggested change
🧰 Tools🪛 ast-grep (0.44.1)[info] 98-98: use jsonify instead of json.dumps for JSON output (use-jsonify) [info] 100-100: use jsonify instead of json.dumps for JSON output (use-jsonify) 🪛 Ruff (0.15.21)[warning] 99-99: Unused lambda argument: (ARG005) [warning] 99-99: Unused lambda argument: (ARG005) [warning] 99-99: Unused lambda argument: (ARG005) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||||||||
| mock_native.start_runtime.return_value = json.dumps(_runtime()) | ||||||||||||||
|
|
||||||||||||||
| def invoke(plan_json: str, runtime_json: str, request_json: str) -> str: | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Run the smoke script with Bash.
The matrix includes
windows-2022, whererundefaults to PowerShell. Lines 158-186 use Bash syntax, so that wheel job fails before testing. Setshell: bashon this step.Proposed fix
- name: Test installed adapter discovery + shell: bash run: |📝 Committable suggestion
🤖 Prompt for AI Agents