ClanGenOfficial / clangen

Warrior Cats fan game
https://clangen.io
Other
229 stars 403 forks source link

Enhancement: Lint clean-up basic PEP8 standards. #2382

Closed susieoneil closed 1 month ago

susieoneil commented 1 month ago

About The Pull Request

Hi, this is my first contribution to ClanGen. I wanted to start small just to get a feel for the pull request process before I tackle more. This request aims to clean up the code to some basic PEP8 standards. I have started with the 'tests' folder first as those files mostly just contain whitespace fixes and a few local scope variable names that could be easily changed. I would like to continue with the scripts folder if you are happy with this one. I left anything I wasn't quite sure of yet, especially if it looked like a work in progress.

Why This Is Good For ClanGen

This improves the readability of the code which makes it easier to work on other issues or find new ones. Removing the simple lint should make the Pylint report more useful for seeing the more critical errors and probably run a bit faster.

I asked a few weeks ago on the Discord coding-and-modding channel, if PEP8 fixes would be welcome. I got an enthusiastic reply from Lily and a like from Fable, so here it is :) https://discord.com/channels/1003759225522110524/1003759339359699054/1235663167909269627

Linked Issues

Proof of Testing

Changelog/Credits

Thlumyn commented 1 month ago

It looks good otherwise, imo, it's nice to see some file cleanups.

scribblecrumb commented 1 month ago

Just wanted to comment that if you do move onto working on the Scripts, avoid the events_module and events.py for a little bit. I'm doing quite a lot of refactoring work in there right now and wouldn't want you to waste your time on something that might have moved or changed completely soon haha

susieoneil commented 1 month ago

@scribblecrumb Thanks for that, I'll leave those alone for now. I might just do one subfolder at a time, to make the commits easy to keep tidy.