mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #960] Codebase Refactor #579
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#579
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HighnessAtharva on GitHub (Apr 8, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/960
After glancing over the codebase, I came across code blocks that could be refactored to make them more maintainable and easier to read. Also, some refactors can make the code more "Pythonic". and performant. I have a few ideas in mind and most of them are:-
Please let me know what Python version should be supported for these refactors and I'll get to work on it.

@HighnessAtharva commented on GitHub (Apr 8, 2023):
If possible, I think we should lift minimum Python version requirement to 3.6/3.7 since we can really improve the readability and efficiency of the code.
@stephanebruckert commented on GitHub (Apr 8, 2023):
I think these are all great suggestions for https://github.com/spotipy-dev/spotipy/issues/652
v3 has its own branch. I would recommend that you use https://github.com/spotipy-dev/spotipy/tree/v3 and open a PR against it.
About the python support, it should be fair to only support >= 3.8 as 3.7 security support ends in June 2023 https://endoflife.date/python, so feel free to use f-strings.
Thanks for any contribution!
PS: that v3 branch is a bit out of sync with the main branch, as it needs a rebase which I have in progress. Just to let you know that conflicts may arise, but we will have all the time to fix them.
@HighnessAtharva commented on GitHub (Apr 8, 2023):
Glad to heart that. I'll start working and make a PR on the v3 branch soon!