Skip to content

refactor: rename _fetch_single/_detect_single to _fetch_repo/_classify_repo#52

Merged
ghinks merged 1 commit into
mainfrom
refactor/rename-helper-functions
May 1, 2026
Merged

refactor: rename _fetch_single/_detect_single to _fetch_repo/_classify_repo#52
ghinks merged 1 commit into
mainfrom
refactor/rename-helper-functions

Conversation

@ghinks
Copy link
Copy Markdown
Owner

@ghinks ghinks commented May 1, 2026

Summary

Renames two private helper functions in cli/app.py so their names describe what they do rather than how many repos they process.

Before After Reason
_fetch_single _fetch_repo Mirrors the fetch CLI command; repo already implies a single repository
_detect_single _classify_repo Mirrors the classify CLI command; better reflects the full scope of work (computes features, scores outliers, saves results, returns RepoClassifyResult)

No behaviour change — pure rename. Only cli/app.py is touched (two definitions, two call sites).

Test plan

  • grep confirms no old names remain in the codebase
  • All 62 unit tests pass (uv run pytest -m "not integration")

🤖 Generated with Claude Code

…y_repo

Names now reflect purpose rather than scope:
- _fetch_repo mirrors the `fetch` CLI command
- _classify_repo mirrors the `classify` CLI command and better
  reflects that the function computes features, scores outliers,
  saves results, and returns a RepoClassifyResult

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ghinks ghinks merged commit 5988772 into main May 1, 2026
1 check passed
@ghinks ghinks deleted the refactor/rename-helper-functions branch May 1, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant