65 lines
1.2 KiB
INI
65 lines
1.2 KiB
INI
[MASTER]
|
|
jobs=0
|
|
ignore=CVS,.git,__pycache__,.venv,venv
|
|
init-hook='import sys; sys.path.append(".")'
|
|
|
|
[MESSAGES CONTROL]
|
|
disable=
|
|
C0103, # 变量名不符合命名规范(允许简短的变量名)
|
|
C0114, # 缺少模块文档字符串
|
|
R0913, # 参数过多
|
|
R0902, # 实例属性过多
|
|
W0511, # TODO 注释
|
|
|
|
enable=
|
|
E,
|
|
W,
|
|
|
|
[REPORTS]
|
|
output-format=colorized
|
|
reports=no
|
|
|
|
[BASIC]
|
|
argument-naming-style=snake_case
|
|
attr-naming-style=snake_case
|
|
class-attribute-naming-style=any
|
|
class-naming-style=PascalCase
|
|
const-naming-style=UPPER_CASE
|
|
function-naming-style=snake_case
|
|
method-naming-style=snake_case
|
|
module-naming-style=snake_case
|
|
variable-naming-style=snake_case
|
|
|
|
good-names=i,j,k,ex,Run,_,x,y,z,fd,id
|
|
docstring-min-length=5
|
|
|
|
[FORMAT]
|
|
max-line-length=80
|
|
max-module-lines=1000
|
|
indent-string=' '
|
|
indent-after-paren=4
|
|
|
|
[DESIGN]
|
|
max-args=7
|
|
max-attributes=10
|
|
max-branches=15
|
|
max-locals=20
|
|
max-returns=6
|
|
max-statements=50
|
|
min-public-methods=1
|
|
|
|
[IMPORTS]
|
|
import-graph=
|
|
ext-import-graph=
|
|
int-import-graph=
|
|
|
|
[CLASSES]
|
|
valid-metaclass-classmethod-first-arg=cls
|
|
valid-classmethod-first-arg=cls
|
|
|
|
[EXCEPTIONS]
|
|
overgeneral-exceptions=
|
|
builtins.BaseException,
|
|
builtins.Exception
|
|
|