-
Notifications
You must be signed in to change notification settings - Fork 11
/
.pylintrc
66 lines (48 loc) · 1.84 KB
/
.pylintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[TYPECHECK]
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E1101 when accessed. Python regular
# expressions are accepted.
generated-members=numpy.*,torch.*
# We get too-many-ancestors warnings whenever we inherit LightningModule:
# it's not really a problem and there isn't really anything we could do
# about it anyway
disable=too-many-ancestors,
# We get these arguments-differ warnings when we override
# PyTorch Lightnings dataload methods because we have fewer
# arguments, but if we include all the arguments, we'd
# get unused variable warnings instead
arguments-differ,
# these not-callable warnings come from an issue with pytorch
# that may be resolved in pytorch version 1.7.2
not-callable,
# we often don't want to override lightning's abstract methods
abstract-method,
# we have too a lot of short variable names, and fixing them doesn't
# seem urgent
invalid-name,
# doesn't seem helpful
too-few-public-methods,
# we don't have comprehensive documentation yet, let's suppress
# these warnings until that's something we're focused on
missing-function-docstring,
missing-module-docstring,
missing-class-docstring,
# not sure it's advisable to "fix" these
too-many-arguments,
too-many-locals,
too-many-instance-attributes,
# we should remove fixme comments
fixme,
# problems in the tests directory
redefined-outer-name,
# when overriding methods you don't get to pick your arguments
unused-argument,
# flake8 recommends against f-strings
logging-fstring-interpolation,
# flake8 already checks for lambda expressions, which are OK at times
unnecessary-lambda-assignment,
# too many false positives
no-member, maybe-no-member, no-value-for-parameter
[SIMILARITIES]
# Minimum lines number of a similarity to report duplicate-code
min-similarity-lines=11