-
Notifications
You must be signed in to change notification settings - Fork 26
/
.pylintrc
101 lines (84 loc) · 2.92 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tool.pylint.main]
# Use multiple processes to speed up Pylint
jobs = 0 # 0: the number of processors available
# Whilelist of packages from where C extensions may be loaded
extension-pkg-allow-list =
numpy,
scipy.spatial._qhull,
ray._raylet,
torch,
eigenpy,
pinocchio,
hppfcl,
jiminy_py.core
panda3d.core
matplotlib.backends
[tool.pylint.typecheck]
# List of members which are set dynamically and missed by pylint inference system
generated-members = torch, jiminy
[tool.pylint.basic]
# Good variable names which should always be accepted, separated by a comma
good-names =
i, j, k, l, N, # Python: for-loop indices
tb, np, nb, mp, tp, # Python: classical modules
fd, _, # Python: contexte
t, q, v, x, u, s, qx, qy, qz, qw, # Physics: state, action
I, R, H, T, M, dt, # Physics: dynamics
A, a, b, c, y, z, n, e, # Maths / Algebra: variables
f, rg, lo, hi, op, fn, # Maths / Algebra: operators
kp, kd, ki, # Control: Gains
ax # Matplotlib
[tool.pylint.format]
# Regexp for a line that is allowed to be longer than the limit
ignore-long-lines = "^\\s*(# )?<?https?://\\S+>?$"
# Maximum number of characters on a single line
max-line-length = 80
# Maximum number of lines in a module
max-module-lines = 5000
[tool.pylint.design]
# Maximum number of boolean terms in a single expression
max-bool-expr = 6
# Maximum number of public methods for a class
max-public-methods=40
# Maximum number of positional arguments per method
max-positional-arguments=30
[tool.pylint.logging]
# The type of string formatting that logging methods do ("old": %, "new": `{}`)
logging-format-style = old
[tool.pylint."messages control"]
# Disable the message, report, category or checker with the given id(s)
disable =
too-many-return-statements,
too-many-instance-attributes,
too-many-arguments,
too-many-locals,
too-many-branches,
too-many-statements,
too-many-ancestors,
too-few-public-methods,
fixme,
consider-iterating-dictionary,
abstract-method,
protected-access,
useless-parent-delegation,
use-dict-literal,
unspecified-encoding,
undefined-loop-variable,
cyclic-import
# Enable the message, report, category or checker with the given id(s)
enable =
c-extension-no-member,
useless-suppression
[tool.pylint.miscellaneous]
# List of note tags to take in consideration, separated by a comma.
notes = ["FIXME", "TODO"]
[tool.pylint.refactoring]
# Maximum number of nested blocks for function / method body
max-nested-blocks = 7
[tool.pylint.similarities]
# Docstrings are removed from the similarity computation
ignore-docstrings = true
# Imports are removed from the similarity computation
ignore-imports = true
# Minimum lines number of a similarity.
min-similarity-lines = 20