Loading

Python black + flake8 自动化规范代码

安装black ,flake8

pipenv install black --pre
pipenv install flake8

添加setup.cfg文件

[flake8]
ignore = E203,E266,E501,W503
max-line-length = 88
max-complexity = 18
select = B,C,E,F,W,T4

运行

pipenv run black

posted @ 2020-07-09 08:49  Tester-Dolores  阅读(175)  评论(0编辑  收藏  举报