Skip to content
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 EOL Python versions, use types, f-strings, tabs, single quotes, Ruff linter, pyproject.toml, ... #53

Merged
merged 12 commits into from
Oct 16, 2024

Conversation

C0rn3j
Copy link
Collaborator

@C0rn3j C0rn3j commented Oct 15, 2024

v2m.py is missing, will do that later if I get to it.

This is a refactor and also a fix taken from #52, I was already fixing the unicode issue so might as well fix the backslash.

Also fixes calling pygame tostring() with a Literal instead of boolean.

This drops Python 2.7 <-> 3.8, people needing those versions can use the version before this one, they are all End of Life.

Fixes up CI to check the currently supported Python versions.

Adds pyproject.toml which is current standard, only with the linter stuff for now.

Unifies code base to tabs and changes the code where it was problematic when indent width would differ in the view - now everyone can use their preferred code width.

Unified code base to single quotes, as that's what's mostly used.

Fixed up small end of line space issues.

Use f-strings over the old way

Fixed readme.md recommending to run sudo pip which fails on all major distributions thanks to a new PEP -> venvs are necessary now.

Added return types to a lot of functions/variables, not everywhere though.

This should make maintenance and spotting issues easier - in fact a linter+LSP highlights a bunch, even after this commit.

Apologies for not splitting this into more commits, it could have used that.

I suggest Hiding Whitespace when reviewing - https://github.com/svsdval/video2midi/pull/53/files?diff=split&w=1

Copy link
Owner

@svsdval svsdval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok

@svsdval svsdval merged commit c3de69b into master Oct 16, 2024
5 checks passed
@svsdval
Copy link
Owner

svsdval commented Oct 16, 2024

Thank you very much for the work you have done, I think that support for old versions of python is no longer needed.

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