-
Notifications
You must be signed in to change notification settings - Fork 307
/
.pylintrc
51 lines (46 loc) · 1.4 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
[MESSAGES CONTROL]
# Only show warnings with the listed confidence levels. Leave empty to show
# all. Valid levels: HIGH, CONTROL_FLOW, INFERENCE, INFERENCE_FAILURE,
# UNDEFINED.
confidence=HIGH,
CONTROL_FLOW,
INFERENCE,
INFERENCE_FAILURE,
UNDEFINED
# Python does not allow relative imports above main entrypoints, but are needed for cron scripts.
# C0413 = wrong-import-position
#
# We are locally disabling something because we don't want to hear about it.
# I0011 = locally-disabled
#
# Too few public methods is bad for context managers.
# R0903 = too-few-public-methods
#
# pylint is confused by some of our imports.
# E1101 = no-member
#
# pycodestyle will already catch these.
# W0702 = bare-except
#
# TODOs are useful to locally indicate that something is not (yet) working.
# W0511 = fixme
#
# TODO: Remove all these:
#
# We need to do a large migration for these.
# C0209 = consider-using-f-string
disable=wrong-import-position,
too-few-public-methods,
too-many-locals,
locally-disabled,
consider-using-f-string,
no-member,
bare-except,
fixme
[BASIC]
# We allow variables to be two characters.
attr-rgx=[a-z_][a-z0-9_]{1,64}$
function-rgx=[a-z_][a-z0-9_]{1,64}$
variable-rgx=[a-z_][a-z0-9_]{1,64}$
# We also allow 'e' (for exceptions), 's' (for strings) and 'f' (for files)
good-names=i,j,k,ex,Run,_,e,s,f