Skip to content

Commit 07c9a56

Browse files
committed
fix: remove unused variables (F841 lint errors)
- Remove unused git_required_for_directives variable - Remove unused git_required variable - Remove unused git_available variable - Use _resolved_path to discard unused return value
1 parent 7baac9c commit 07c9a56

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/specify_cli/__init__.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3348,12 +3348,6 @@ def init(
33483348
"[yellow]Git not found - will skip repository initialization[/yellow]"
33493349
)
33503350

3351-
git_required_for_directives = bool(
3352-
team_ai_directives and team_ai_directives.strip()
3353-
)
3354-
git_required = should_init_git or git_required_for_directives
3355-
git_available = True
3356-
33573351
if not ignore_agent_tools:
33583352
agent_config = AGENT_CONFIG.get(selected_ai)
33593353
if agent_config and agent_config["requires_cli"]:
@@ -3514,15 +3508,13 @@ def init(
35143508
install_bundled_presets(project_path, selected_ai, tracker=tracker)
35153509

35163510
# Sync team-ai-directives if provided
3517-
resolved_team_directives = None
35183511
team_arg = team_ai_directives.strip() if team_ai_directives else ""
35193512
if team_arg:
35203513
tracker.start("directives")
35213514
try:
3522-
status, resolved_path = sync_team_ai_directives(
3515+
status, _resolved_path = sync_team_ai_directives(
35233516
team_arg, project_path, skip_tls=skip_tls
35243517
)
3525-
resolved_team_directives = resolved_path
35263518
tracker.complete("directives", status)
35273519
except Exception as e:
35283520
tracker.error("directives", str(e))

0 commit comments

Comments
 (0)