flake8 + pycharm

配置:

pip install flake8

当前使用的Interpreter

1
$PyInterpreterDirectory$/python

Arguments:

1
2
3
4
5
6
7
8
9
10
-m
flake8
--show-source
--statistics
--max-line-length=130
--exclude
.env,tests
--ignore
E501,W503
$ProjectFileDir$

exclude 忽略目录 ignore 忽略的错误 $ProjectFileDir$ 当前项目所在目录

使用