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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor!:drop mycroft #235
refactor!:drop mycroft #235
Changes from all commits
24368b1
66e5d8a
edcc0ea
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Consider simplifying the get_skill_class function
The docstring has been updated to reflect the transition to OVOSSkill, which is good. However, the function's implementation still uses a generic approach to find skill classes.
Consider simplifying this function to specifically look for OVOSSkill subclasses, as this could potentially improve performance and readability. Here's a suggested implementation:
This implementation is more straightforward and directly aligns with the OVOS-specific structure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Remaining reference to
FallbackSkillV2
found in tests.A reference to
FallbackSkillV2
was found in the test filetest/unittests/skills/test_fallback_skill.py
:class TestFallbackSkillV2(TestCase):
Please update or remove this reference to ensure all parts of the codebase are consistent with the recent changes.
🔗 Analysis chain
LGTM! Verify impact on dependent code.
The changes to the
UniversalFallback
class, including updating the inheritance fromFallbackSkillV2
toFallbackSkill
and modifying theregister_fallback
method, appear to be part of the larger refactoring effort to remove Mycroft components. These changes are consistent and should simplify the skill hierarchy.To ensure these changes don't introduce any unintended side effects, please run the following script to check for any remaining references to
FallbackSkillV2
in the codebase:If the script returns any results, those occurrences may need to be updated to maintain consistency with these changes.
Also applies to: 376-376
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 65
Script:
Length of output: 112
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused imports
The static analysis tool has correctly identified that
MediaState
andMatchConfidence
are imported but not used in the code. To improve code cleanliness and reduce potential confusion, it's recommended to remove these unused imports.Apply this diff to remove the unused imports:
📝 Committable suggestion
🧰 Tools
🪛 Ruff
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.