flask8检测代码长度过长的解决方案

在项目根目录下创建 .flake8文件,并把下面文件中的内容粘过去就行了

[flake8]
ignore = W504,W605,C901
exclude =
    *migrations*,
    # python related
    *.pyc,
    .git,
    __pycache__,
    ./apidoc/*
    ./docs/*
    ./webpack/node_modules/*
    ./blueapps/*
    ./sites/*

max-line-length=120
max-complexity=12
format=pylint
show_source = False
statistics = True
count = True

posted @ 2019-11-12 08:57  Awakenedy  阅读(472)  评论(0)    收藏  举报