I touched perl before python perl -cw hoge.pl I wanted something like checking with options, but it seems that it is not the default environment.
sudo pip install pyflakes sudo pip install pep8
Install the above pyflakes hoge.py pep8 hoge.py
You can check with. pyflakes will tell you the grammar check of the part where the operation becomes an error and the module you are not using. For pep8, check whether the coding rules of pep8 are followed.
It will point out the number of lines and characters, so make corrections steadily.
Reference site http://d.hatena.ne.jp/tell-k/20110425/1303745312
Recommended Posts