pylintrc 1.09 KB
Newer Older
Deshui Yu's avatar
Deshui Yu committed
1
# Usage:
Zejun Lin's avatar
Zejun Lin committed
2
#       python3 -m pylint --rcfile=PATH_TO_THIS_FILE PACKAGE_NAME
Deshui Yu's avatar
Deshui Yu committed
3
# or
Zejun Lin's avatar
Zejun Lin committed
4
#       python3 -m pylint --rcfile=PATH_TO_THIS_FILE SOURCE_FILE.py
Deshui Yu's avatar
Deshui Yu committed
5
6
7
8
9

[SETTINGS]

max-line-length=140

Zejun Lin's avatar
Zejun Lin committed
10
max-args=8
Deshui Yu's avatar
Deshui Yu committed
11
12
max-locals=15
max-statements=50
Zejun Lin's avatar
Zejun Lin committed
13
max-attributes=15
Deshui Yu's avatar
Deshui Yu committed
14
15
16

const-naming-style=any

Yan Ni's avatar
Yan Ni committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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,
        useless-super-delegation,
        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 

ignore-patterns=test.py
Lee's avatar
Lee committed
46
47
48

# List of members which are set dynamically and missed by pylint inference
generated-members=numpy.*,torch.*