2018-08-20 11:13:47 +03:00
|
|
|
# Usage:
|
2018-11-16 05:27:16 +03:00
|
|
|
# python3 -m pylint --rcfile=PATH_TO_THIS_FILE PACKAGE_NAME
|
2018-08-20 11:13:47 +03:00
|
|
|
# or
|
2018-11-16 05:27:16 +03:00
|
|
|
# python3 -m pylint --rcfile=PATH_TO_THIS_FILE SOURCE_FILE.py
|
2018-08-20 11:13:47 +03:00
|
|
|
|
|
|
|
[SETTINGS]
|
|
|
|
|
|
|
|
max-line-length=140
|
|
|
|
|
2018-11-16 05:27:16 +03:00
|
|
|
max-args=8
|
2018-08-20 11:13:47 +03:00
|
|
|
max-locals=15
|
|
|
|
max-statements=50
|
2018-11-16 05:27:16 +03:00
|
|
|
max-attributes=15
|
2018-08-20 11:13:47 +03:00
|
|
|
|
|
|
|
const-naming-style=any
|
|
|
|
|
2019-10-25 11:56:01 +03:00
|
|
|
# based on pylint 2.1.1
|
|
|
|
disable=W,C,R,I,no-member
|
|
|
|
|
|
|
|
# will be enforced on CI Pipeline
|
|
|
|
enable= unused-wildcard-import,
|
|
|
|
bad-whitespace,
|
|
|
|
unused-import,
|
|
|
|
bad-continuation,
|
|
|
|
wrong-import-order,
|
|
|
|
trailing-whitespace,
|
|
|
|
logging-not-lazy,
|
|
|
|
line-too-long,
|
|
|
|
unused-variable,
|
|
|
|
wildcard-import,
|
2019-10-31 13:53:16 +03:00
|
|
|
# useless-super-delegation,
|
2019-10-25 11:56:01 +03:00
|
|
|
len-as-condition,
|
|
|
|
logging-format-interpolation,
|
|
|
|
redefined-builtin,
|
|
|
|
deprecated-method
|
|
|
|
|
|
|
|
# will change to `enable` one day
|
|
|
|
# disable= missing-docstring
|
|
|
|
|
|
|
|
# will not be enforced on CI but highly recommend contributor fixing it
|
|
|
|
# enable=no-member,
|
|
|
|
# too-many-branches,
|
|
|
|
# protected-access
|
|
|
|
|
2019-10-31 13:53:16 +03:00
|
|
|
ignore-patterns=test*
|
2018-12-13 09:40:16 +03:00
|
|
|
|
|
|
|
# List of members which are set dynamically and missed by pylint inference
|
2021-04-09 04:34:08 +03:00
|
|
|
generated-members=numpy.*,torch.*,tensorflow.*,pycuda.*,tensorrt.*
|
2020-05-19 14:33:13 +03:00
|
|
|
|
2021-07-23 06:32:12 +03:00
|
|
|
ignored-modules=tensorflow,_winapi,msvcrt,tensorrt,pycuda,nni_node
|