Skip to content

Add warning when local_repo_path directory doesn't exist #202

@yusufkaraaslan

Description

@yusufkaraaslan

Summary

Add validation to warn users when local_repo_path is provided but the directory doesn't exist.

Background

Follow-up from PR #195 - Reviewer Question #4 by @jimmy058910

Current Behavior

If user provides invalid local_repo_path, the scraper silently falls back to GitHub API mode without warning.

Desired Behavior

Display clear warning message and inform user of fallback:

if local_repo_path and not os.path.isdir(local_repo_path):
    logger.warning(f"local_repo_path does not exist: {local_repo_path}")
    logger.warning("Falling back to GitHub API mode")

Benefits

  • Catches user typos in config
  • Makes failure mode explicit
  • Improves UX

Related

Files to Modify

  • src/skill_seekers/cli/github_scraper.py - Add validation in init or scraping method

Priority

Low - Enhancement (non-breaking, improves UX)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions