Skip to content

General Code Refactor Using Sourcery#1326

Merged
pvcraven merged 6 commits intopythonarcade:developmentfrom
BrettskiPy:1325-general-refactor
Sep 24, 2022
Merged

General Code Refactor Using Sourcery#1326
pvcraven merged 6 commits intopythonarcade:developmentfrom
BrettskiPy:1325-general-refactor

Conversation

@BrettskiPy
Copy link
Contributor

Issue #1325

I've noticed a few areas of the Arcade codebase that can be improved with the assistance of AI refactoring tools Sourcery. I spent some time to pick out a subsection of the ways I believe the code can be improved.

If any/all of these "suggestions" are implemented, I'll be happy. The AI refactoring selections I've chosen are my bias to what "cleaner code" is. There are plenty more suggestions, but I figured I would start with this to see if this is something that is received positively. 😉

Thank you!

Initial refactor
added additional refactoring
Added extra line
added mistakenly removed comment and added visual space
Removed extra lines and unneeded comments
@BrettskiPy BrettskiPy changed the title Issue#1325 General Code Refactor Using Sourcery General Code Refactor Using Sourcery Sep 20, 2022
Copy link
Member

@pvcraven pvcraven left a comment

Choose a reason for hiding this comment

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

There are some good refactors here. Not super-wild about all the ternary usage. Some is ok when the code is short, but I think it makes things hard to read.

@pvcraven
Copy link
Member

I did another pass-through. I think if you update with the changes, I'm happy to merge in.

Reverted code based on PR feedback
@pvcraven pvcraven merged commit 8ef3fda into pythonarcade:development Sep 24, 2022
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