Skip to content

Adoption fixes#1

Merged
misconfigurations merged 5 commits intomisconfigurations:masterfrom
jacopotediosi:adoption-fixes
May 7, 2026
Merged

Adoption fixes#1
misconfigurations merged 5 commits intomisconfigurations:masterfrom
jacopotediosi:adoption-fixes

Conversation

@jacopotediosi
Copy link
Copy Markdown

@jacopotediosi jacopotediosi commented May 7, 2026

This PR takes the opportunity of the ongoing adoption to modernize this plugin codebase.

Since the new pyproject.toml sets Python 3.7 as the minimum supported version, there is no longer any reason to keep all the legacy Python 2 branchings in the code.

The get_update_information function is also fixed to point to this repository.

Finally, there are some minor refactors with no functional impact, such as converting comparisons that used == instead of is, and removing dead code.

Please note that all of this, while it doesn't seem like it could reasonably be wrong code-wise, and most of the changes I've made are semantically equivalent, hasn't been tested, so it's up to you.

This is since the plugin adopter wants to support only Python >= 3.7 (see pyproject.toml). This should greatly reduce the code surface, making everything easier to maintain.
The adopter forgot to do it
E.g., unused vars, type comparisons using equals, etc
@misconfigurations
Copy link
Copy Markdown
Owner

Thank you for this for these fixes. I'm merging this PR now

@misconfigurations misconfigurations merged commit 05c5af0 into misconfigurations:master May 7, 2026
@jacopotediosi jacopotediosi deleted the adoption-fixes branch May 7, 2026 16:13
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