jamesg31 / TowerGame

PyGame Tower ATC simulation.
GNU General Public License v3.0
6 stars 1 forks source link

Various refactors and tidy up. #25

Closed wg4568 closed 3 years ago

wg4568 commented 3 years ago

The biggest change here is to the file structure.

The second biggest change is using a code formatter. I went with Black. You can install it using pip install black and configure vscode to use it by running "format document" and opting to use Black (a popup in the bottom right). I would also recommend enabling "format on save" in settings.

wg4568 commented 3 years ago

Just a note, I made no changes to the code itself.

wg4568 commented 3 years ago

Just did some reading, we might want to configure our pylint.yml file to use Black also. It's a little more opinionated (and therefor more consistent) when compared to the default pylint stuff. It looks like @AdamJCavanaugh has done some work on this

AdamJCavanaugh commented 3 years ago

Yeah, I normally use flake8, but black would be fine. I'll plan to use that when I get around to working on the action.