xref: /qemu/scripts/qapi/pylintrc (revision fc8da54ec43cf6302ac496d8fe54832812954679)
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        unknown-option-value,
23        useless-option-value,
24
25[REPORTS]
26
27[REFACTORING]
28
29[MISCELLANEOUS]
30
31[LOGGING]
32
33[BASIC]
34
35# Good variable names regexes, separated by a comma. If names match any regex,
36# they will always be accepted.
37#
38# Suppress complaints about short names.  PEP-8 is cool with them,
39# and so are we.
40good-names-rgxs=^[_a-z][_a-z0-9]?$
41
42[VARIABLES]
43
44[STRING]
45
46[SPELLING]
47
48[FORMAT]
49
50[SIMILARITIES]
51
52# Ignore import statements themselves when computing similarities.
53ignore-imports=yes
54
55[TYPECHECK]
56
57[CLASSES]
58
59[IMPORTS]
60
61[DESIGN]
62
63[EXCEPTIONS]
64