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

Tons of fixes for the codebase #629

Merged
merged 32 commits into from
Aug 4, 2022
Merged

Tons of fixes for the codebase #629

merged 32 commits into from
Aug 4, 2022

Conversation

txtsd
Copy link
Contributor

@txtsd txtsd commented Jul 12, 2022

This PR fixes typos, some logical warnings/errors, PEP8 coding style violations, resolves some unresolved imports and errors around incorrect module imports, adjusts exceptions so they don't catch Ctrl+C etc, lints markdown, and a bit more.

I would like to follow PEP8: E501 so lines are not longer than 120 chars, and apply PEP8 naming conventions so variable names, argument names, function names, and class names are pythonic and consistent. Let me know if I should go ahead and do these.

There are a few instances of import Image. I'm not sure what module/package that belongs to, and I'd like clarification as to what it actually imports. Additionally, I would like to push a requirements.txt. Let me know if that's okay.

When reviewing, please do so by commit lest the changes look like spaghetti.

@txtsd txtsd marked this pull request as ready for review July 12, 2022 20:56
@FichteFoll
Copy link
Collaborator

Thanks for the effort you went through here. Unfortunately, it's kind of dependant on a discussion that hasn't been held yet in #624, so I'll also refrain from reviewing the changes until we've had at least some form of discussion across the people with repo access (or I've lost patience for some reason or another). From the commit messages, many of these look promising, however.

@txtsd
Copy link
Contributor Author

txtsd commented Jul 18, 2022

That's completely alright. I just happened to pick a FOSS project I use and direct my hypomanic energy into it.

I'll keep an eye on the discussion. I'm sure we can drop some commits and edit others to fit in with what is discussed eventually.

@z411
Copy link
Owner

z411 commented Jul 31, 2022

I'll take a look. I appreciate your work and I fully agree with adhering to PEP, maybe excepting line widths.

@FichteFoll
Copy link
Collaborator

Also, aside from the change I commented on, these are good changes and I'd like to merge them. If you could rebase on master and solve the merge conflicts, that would be much appreciated.

txtsd added 24 commits August 2, 2022 09:16
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Block comment should start with '# '

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Test for membership should be 'not in'

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Expected 2 blank lines, found 1

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Missing whitespace after ,

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
At least 2 spaces before inline comment

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Do not use variables named 'I', 'O', or 'l'

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Module level import not at top of file

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Multiple imports on one line

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Indentation is not a multiple of 4

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Do not use bare except
A bare except: clause will catch SystemExit and KeyboardInterrupt exceptions,
making it harder to interrupt a program with Control-C, and can disguise other problems.

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Expected 2 blank lines after end of function or class

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Multiple spaces before operator

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Missing whitespace around operator

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Invalid escape sequence

Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
Signed-off-by: txtsd <thexerothermicsclerodermoid@gmail.com>
@txtsd
Copy link
Contributor Author

txtsd commented Aug 2, 2022

Reverted the chain comparisons lines, and rebased on master!

@z411 z411 merged commit 145f651 into z411:master Aug 4, 2022
@txtsd
Copy link
Contributor Author

txtsd commented Aug 4, 2022

Thank you!

@z411
Copy link
Owner

z411 commented Aug 5, 2022

Thank you for your work!

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.

3 participants