美文网首页
python编码规范---利用flake8自动检测

python编码规范---利用flake8自动检测

作者: tf_dejs | 来源:发表于2017-08-05 14:50 被阅读0次

安装
sudo pip install flake8

$ flake8 hello.py
hello.py:4:1: E302 expected 2 blank lines, found 1
hello.py:4:11: E999 SyntaxError: invalid syntax
hello.py:5:5: E113 unexpected indentation
hello.py:7:1: E305 expected 2 blank lines after class or function definition, found 1

相关文章

网友评论

      本文标题:python编码规范---利用flake8自动检测

      本文链接:https://www.haomeiwen.com/subject/gluilxtx.html