-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Move art.py to beetsplug._utils package to avoid polluting core namespace
#6013
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
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR reorganizes the art utility by moving it out of the core namespace into the beetsplug._utils package, updates all plugin code and tests to import from the new location, adds the move to .git-blame-ignore-revs, and records the change in the changelog. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Pull Request Overview
This PR moves the art.py utility module from the main beets namespace to beetsplug._utils to avoid polluting the core namespace, since it's only used by plugins.
- Moved
art.pymodule frombeetstobeetsplug._utils - Updated import statements in plugins and tests to use the new location
- Added changelog entry documenting the namespace change
Reviewed Changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/plugins/test_embedart.py | Updated import to use new beetsplug._utils.art location |
| docs/changelog.rst | Added changelog entry documenting the module move |
| beetsplug/embedart.py | Updated import to use new beetsplug._utils.art location |
| beetsplug/convert.py | Updated import to use new beetsplug._utils.art location |
| .git-blame-ignore-revs | Added commit hash to ignore list for git blame |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6013 +/- ##
=======================================
Coverage 66.52% 66.53%
=======================================
Files 117 117
Lines 18102 18104 +2
Branches 3067 3067
=======================================
+ Hits 12043 12045 +2
Misses 5405 5405
Partials 654 654
🚀 New features to boost your workflow:
|
|
It's only used by plugins - I don't think it belongs under beets core. What about |
|
Thought initially a shared folder for common beetsplug functions might be useful.We have the same issue with the Am not sure what is more maintainable in the long run. No strong opinion either way as long as it is kinda consistent. |
|
|
|
Glad that we agree here 👍 That's why I started the PRs...
As I said:
|
|
Sorry - I'm an idiot. For some reason, I assumed that you moved them under |
|
No worries. I already thought you might have misread it. That's why I clarified 🙃 |
This PR moves the
art.pymodule, which is only used by the plugin architecture, to avoid polluting the main beets namespace.Added commit where file is moved to the
.git-blame-ignore-revsfile.Summary by Sourcery
Move the plugin-only art module out of the core namespace and into the beetsplug._utils package
Enhancements:
Documentation:
Chores: