xref: /qemu/scripts/qapi/pylintrc (revision 6ff5da16000f908140723e164d33a0b51a6c4162)
1[MASTER]
2
3[MESSAGES CONTROL]
4
5# Disable the message, report, category or checker with the given id(s). You
6# can either give multiple identifiers separated by comma (,) or put this
7# option multiple times (only on the command line, not in the configuration
8# file where it should appear only once). You can also use "--disable=all" to
9# disable everything first and then reenable specific checks. For example, if
10# you want to run only the similarities checker, you can use "--disable=all
11# --enable=similarities". If you want to run only the classes checker, but have
12# no Warning level messages displayed, use "--disable=all --enable=classes
13# --disable=W".
14disable=consider-using-f-string,
15        fixme,
16        missing-docstring,
17        too-many-arguments,
18        too-many-branches,
19        too-many-instance-attributes,
20        too-many-positional-arguments,
21        too-many-statements,
22        useless-option-value,
23
24[REPORTS]
25
26[REFACTORING]
27
28[MISCELLANEOUS]
29
30[LOGGING]
31
32[BASIC]
33
34# Good variable names regexes, separated by a comma. If names match any regex,
35# they will always be accepted.
36#
37# Suppress complaints about short names.  PEP-8 is cool with them,
38# and so are we.
39good-names-rgxs=^[_a-z][_a-z0-9]?$
40
41[VARIABLES]
42
43[STRING]
44
45[SPELLING]
46
47[FORMAT]
48
49[SIMILARITIES]
50
51# Ignore import statements themselves when computing similarities.
52ignore-imports=yes
53
54[TYPECHECK]
55
56[CLASSES]
57
58[IMPORTS]
59
60[DESIGN]
61
62[EXCEPTIONS]
63