Skip to content

Commit d05a622

Browse files
Markuscursoragent
andcommitted
fix(workflows): drop duplicate INTEGRATION_JSON and unused import (PR #2408)
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 48c6223 commit d05a622

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/specify_cli/paths.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
"""
66

77
SPECIFY_DIR = ".specify"
8-
INTEGRATION_JSON = f"{SPECIFY_DIR}/integration.json"
98
INIT_OPTIONS_FILE = f"{SPECIFY_DIR}/init-options.json"

src/specify_cli/workflows/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import yaml
2121

2222
from .base import RunStatus, StepContext, StepResult, StepStatus
23-
from specify_cli.paths import INTEGRATION_JSON as _INTEGRATION_JSON
23+
from specify_cli.integration_state import INTEGRATION_JSON as _INTEGRATION_JSON
2424
from specify_cli.paths import INIT_OPTIONS_FILE as _INIT_OPTIONS_FILE
2525

2626

tests/test_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,7 @@ def test_integration_explicit_auto_input_also_resolves(self, project_dir):
19591959

19601960
def test_integration_auto_ignores_malformed_integration_json(self, project_dir):
19611961
"""Malformed integration.json falls back to 'copilot'."""
1962-
from specify_cli.workflows.engine import WorkflowEngine, WorkflowDefinition
1962+
from specify_cli.workflows.engine import WorkflowEngine
19631963

19641964
(project_dir / ".specify" / "integration.json").write_text(
19651965
"not valid json", encoding="utf-8"

0 commit comments

Comments
 (0)