-
Notifications
You must be signed in to change notification settings - Fork 79
/
.pylintrc
61 lines (47 loc) · 1.68 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
[MASTER]
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use.
jobs=1
[MESSAGES CONTROL]
# Disable the message, report, category or checker with the given id(s).
disable=all
# Enable the message, report, category or checker with the given id(s).
enable=c-extension-no-member,
bad-indentation,
bare-except,
broad-except,
dangerous-default-value,
function-redefined,
len-as-condition,
line-too-long,
misplaced-future,
missing-final-newline,
mixed-line-endings,
multiple-imports,
multiple-statements,
singleton-comparison,
trailing-comma-tuple,
trailing-newlines,
trailing-whitespace,
unexpected-line-ending-format,
unused-import,
unused-variable,
wildcard-import,
wrong-import-order
[FORMAT]
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=LF
# 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=120
# Maximum number of lines in a module.
max-module-lines=2000
[EXCEPTIONS]
# Exceptions that will emit a warning when being caught. Defaults to
# "BaseException, Exception".
overgeneral-exceptions=BaseException,
Exception
# Note how codecc doesn't accept goddnames in pylintrc, and how we use pylint disable invalid name per file instead
# it is not neat at all, but this is codecc's badness :(
# stupid to check variable name convention when you are a scientist dealing with lots of N, Pauli or QAOA