RLBot / RLBotGUI

32 stars 25 forks source link

Consistent python style #27

Open DomNomNom opened 5 years ago

DomNomNom commented 5 years ago

As mentioned in comments of #26

There are a few things that might be good to have consistent code style for. This issue is for discussing which code style we should have and how we best achieve this.

DomNomNom commented 5 years ago

Some preferences of mine at this point in time:

amsam0 commented 5 years ago

One option is Black. I'm not sure how the options work, but a batch file could be created for this.

DomNomNom commented 5 years ago

Also, doing it as a pre-commit hook or something might be useful, so we avoid situations of people accidentally not running it.

amsam0 commented 5 years ago

Not a pro on that, but good idea.

azeemba commented 4 years ago

Are we still interested in this? I have a GitHub action config that can apply black formatting and commit/push it out after any changes land on master.

This is a commit the action pushed out: https://github.com/azeemba/RLBotGUI/commit/81632141fc0772dd41b7beec18dabedeb6a50985 Here is the configuration: action-test/.github/workflows/main.yml Here are the logs: https://github.com/azeemba/RLBotGUI/runs/828744657?check_suite_focus=true

We could expand it to also do prettier for the JS code.