refactor: rename _fetch_single/_detect_single to _fetch_repo/_classify_repo#52
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renames two private helper functions in
cli/app.pyso their names describe what they do rather than how many repos they process._fetch_single_fetch_repofetchCLI command;repoalready implies a single repository_detect_single_classify_repoclassifyCLI command; better reflects the full scope of work (computes features, scores outliers, saves results, returnsRepoClassifyResult)No behaviour change — pure rename. Only
cli/app.pyis touched (two definitions, two call sites).Test plan
grepconfirms no old names remain in the codebaseuv run pytest -m "not integration")🤖 Generated with Claude Code