安装
$ pip install pycodestyle $ pip install --upgrade pycodestyle $ pip uninstall pycodestyle
基本使用方法:$ pycodestyle [file name or directory name]
参数 --statistics -qq :对结果进行汇总
参数 --show-source:更详细的输出
参数 --ignore:忽略指定输出
错误码含义
E...:错误
W...:警告
100 型:缩进问题
200 型:空格问题
300 型:空行问题
400 型:导入问题
500 型:行长度问题
600 型:已弃用
700 型:声明问题
900 型:语法错误