Skip to content

Conversation

@VikramGoyal23
Copy link
Contributor

Allows developers to set the exercise source as a local path, enabling fully local exercise testing. Backwards compatible and assumes lack of type field as remote.

@VikramGoyal23 VikramGoyal23 added the enhancement New feature or request label Jan 20, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for using local exercise repositories for testing, enabling developers to test exercise changes locally before pushing to remote. The implementation maintains backwards compatibility by defaulting to "remote" type when the type field is absent.

Changes:

  • Extended ExercisesSource dataclass to support both "remote" and "local" repository types with appropriate fields for each
  • Added from_raw class method for flexible deserialization with backwards compatibility
  • Implemented local repository copying logic using shutil.copytree for isolation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
app/configs/gitmastery_config.py Extended ExercisesSource to support local/remote types, added from_raw factory method for backwards-compatible deserialization
app/utils/gitmastery.py Added local repo handling branch in enter method with path validation and directory copying logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Typecheck `path` beofre use
- Remove symlink copying
- Clarify legacy fallthrough
@jovnc
Copy link
Collaborator

jovnc commented Jan 24, 2026

@VikramGoyal23 Is this ready for review? Would also be good to resolve copilot comments if they have been addressed as well to reduce cognitive load on reviewer

@VikramGoyal23
Copy link
Contributor Author

@jovnc Yes, this is ready for another review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants