在项目根目录下创建 .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