-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pylintrc
86 lines (70 loc) · 2.35 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
82
83
84
85
86
[MASTER]
# Multiple processes cause strange reports
jobs=1
# Add code path to PYTHONPATH
init-hook='import sys, os; from pylint.config import find_pylintrc; sys.path.append(os.path.join(os.path.dirname(find_pylintrc()), "mqttany"))'
# ignores
ignore=
config,
log
[MESSAGES CONTROL]
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time. See also the "--disable" option for examples.
enable=
E,
F,
# VSCode defaults - https://code.visualstudio.com/docs/python/linting#_default-pylint-rules
unreachable,
duplicate-key,
unnecessary-semicolon,
global-variable-not-assigned,
unused-variable,
binary-op-exception,
bad-format-string,
anomalous-backslash-in-string,
bad-open-mode
# pylintrc defaults
use-symbolic-message-instead,
useless-supression,
fixme
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=
C,
R,
bare-except,
unused-argument,
redefined-builtin,
redefined-outer-name,
dangerous-default-value,
global-statement,
raise-missing-from,
subprocess-run-check,
keyword-arg-before-vararg,
import-self,
# pylintrc defaults
#attribute-defined-outside-init,
#duplicate-code,
invalid-name,
missing-docstring,
protected-access,
#too-few-public-methods,
# handled by black
format
[VARIABLES]
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid defining new builtins when possible.
additional-builtins=
# LED Module
FRAME_MS
# List of strings which can identify a callback function by name. A callback
# name must start or end with one of those strings.
callbacks=cb_,_cb,callback_,_callback