Skip to content

feat: ✨ ProfileLoader#244

Merged
remimd merged 2 commits intodevfrom
profile_loader
May 22, 2025
Merged

feat: ✨ ProfileLoader#244
remimd merged 2 commits intodevfrom
profile_loader

Conversation

@remimd
Copy link
Copy Markdown
Member

@remimd remimd commented May 22, 2025

No description provided.

@remimd remimd requested a review from Copilot May 22, 2025 11:59
@remimd remimd self-assigned this May 22, 2025
Copy link
Copy Markdown

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 PR introduces a new ProfileLoader-based API for loading profiles, replacing the previous signature using module-based profiles. Key changes include:

  • Updating load_test_profile in testing modules to accept a ProfileLoader.
  • Refactoring the loaders and entrypoint modules to utilize ProfileLoader and LoadedProfile protocols.
  • Removing the old load_profile method from Module and its type declaration in init.pyi.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
injection/testing/init.pyi Updated imports and function signature for testing profiles
injection/testing/init.py Updated function signature and parameters for testing profiles
injection/loaders.py Added ProfileLoader and LoadedProfile along with associated methods
injection/entrypoint.py Replaced module-based profile handling with ProfileLoader and updated the decorator logic
injection/_core/module.py Removed the obsolete load_profile function
injection/init.pyi Removed load_profile declaration to reflect API changes
documentation/entrypoint.md Minor text update in description
Comments suppressed due to low confidence (1)

injection/testing/init.pyi:15

  • The default value for the loader parameter is specified as '...', while in the .py file it defaults to None. Consider aligning these defaults for consistency.
def load_test_profile(loader: ProfileLoader = ...):

Comment thread injection/entrypoint.py
@remimd remimd merged commit fe11e08 into dev May 22, 2025
5 checks passed
@remimd remimd deleted the profile_loader branch May 22, 2025 13:25
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.

2 participants