-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pylintrc
72 lines (53 loc) · 1.79 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
[MAIN]
# Ignore generated and vendored code
ignore-paths=src/grammar,
src/_vendor,
# Use as many processes as possible
jobs=0
# Required Python version is 3.10
py-version=3.10
[BASIC]
# Allow foo etc. for tests
bad-names=
# Allow CMD_TYPE, used in commands pacakge - TODO not actually a class
# name, it's a constant that I'm assigning a class to - pylint bug?
class-rgx=(?:CMD_TYPE|[^\W\da-z][^\W_]+)$
# Allow all single-letter variable names (for iteration vars)
good-names=
good-names-rgxs=[a-z]
[FORMAT]
# Maximum line length is 80
max-line-length=80
[MESSAGES CONTROL]
# First couple are defaults, all later ones have explanatory comments
disable=raw-checker-failed,
bad-inline-option,
locally-disabled,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
use-symbolic-message-instead,
# TODO: False positives due to kw_only fields in dataclass
redundant-keyword-arg,
# TODO: See above
no-value-for-parameter,
# TODO: Currently lots of these about, in the future we may want to
# reenable this
fixme,
# Just a nonsense warning, especially with dataclasses and slots
too-few-public-methods,
# I often find this less readable than indenting
no-else-raise, no-else-return,
# I prefer using a bunch of return statements over complicating the
# logic by using variables
too-many-return-statements,
# Let me have my locals dangit :(
too-many-locals,
[REPORTS]
# Output text for CI compatibility (colorized text breaks GitHub's CI)
output-format=text
[SIMILARITIES]
# Signatures are removed from the similarity computation
# FIXME: Does setting this to yes cause problems?
ignore-signatures=no