测试

复制代码
测试

使用Flak8检测python代码的错误和警告

pip install flake8

flake8 test.py

实例:

[root@test3 ~]# flake8 test.py 
test.py:4:1: E302 expected 2 blank lines, found 1
test.py:9:1: E302 expected 2 blank lines, found 0
test.py:14:1: E302 expected 2 blank lines, found 0
test.py:23:1: E305 expected 2 blank lines after class or function definition, found 1
复制代码

 

posted @   effortsing  阅读(168)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示