-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylintrc
81 lines (63 loc) · 2.43 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[MAIN]
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code
extension-pkg-allow-list=ephem
# List of plugins (as comma separated values of python module names) to load,
# usually to register additional checkers.
load-plugins=
pylint.extensions.bad_builtin,
pylint.extensions.check_elif,
pylint.extensions.comparison_placement,
pylint.extensions.confusing_elif,
pylint.extensions.consider_refactoring_into_while_condition,
pylint.extensions.docparams,
pylint.extensions.dunder,
pylint.extensions.empty_comment,
pylint.extensions.emptystring,
pylint.extensions.eq_without_hash,
pylint.extensions.for_any_all,
; pylint.extensions.mccabe, # cyclomatic complexity
pylint.extensions.no_self_use,
pylint.extensions.overlapping_exceptions,
pylint.extensions.private_import,
pylint.extensions.redefined_loop_name,
pylint.extensions.set_membership,
pylint.extensions.typing
[BASIC]
# I'm okay with short variable names like `az` and `alt`.
# Regular expression matching correct attribute names
attr-rgx=[a-z_][a-z0-9_]{0,30}$
# Regular expression matching correct variable names
variable-rgx=[a-z_][a-z0-9_]{0,30}$
# Regular expression matching correct argument names
argument-rgx=[a-z_][a-z0-9_]{0,30}$
[MESSAGES CONTROL]
disable=
duplicate-code, # ideally should re-enable this at some point
logging-fstring-interpolation,
no-else-raise,
no-else-return,
superfluous-parens,
too-few-public-methods,
too-many-arguments,
too-many-branches,
too-many-instance-attributes,
too-many-locals,
too-many-statements,
unspecified-encoding
[REPORTS]
output-format=colorized
[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.
# In theory, cv2 could be handled by adding it to extension-pkg-allow-list.
# However, the maintainers of opencv-python repeatedly release versions of the
# package that cause pylint to trigger E1101 even when it's included in the
# allow list.
generated-members=gps.*,cv2.*
# List of classes names for which member attributes should not be checked
# (useful for classes with attributes dynamically set). This supports can work
# with qualified names.
ignored-classes=astropy.units