RaspberryPi-Samples / SenseHat-samples

Some examples to use with SenseHat
5 stars 0 forks source link

PEP8 #5

Closed s-celles closed 6 years ago

s-celles commented 6 years ago

Hello,

Maybe PEP8 could be checked with Travis CI and flake8 like we did in

https://github.com/scls19fr/numpy-buffer/issues/15

autopep8 can help https://pypi.org/project/autopep8/ to fix automatically PEP8 issues

A usage example

git checkout -b PEP8
autopep8 --in-place --recursive --max-line-length=200 --select="E101" .

Kind regards

s-celles commented 6 years ago

https://black.readthedocs.io/ could also help

$ black SenseHat-samples
s-celles commented 6 years ago

An other interesting tool for that purpose is Coala.

https://coala.io/#/home?lang=Python https://github.com/coala/coala

This tool uses the following motto:

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." ― John F. Woods