summaryrefslogtreecommitdiffstats
path: root/python/qemu/machine/pylintrc
diff options
context:
space:
mode:
authorJohn Snow2021-05-27 23:16:53 +0200
committerJohn Snow2021-06-01 22:21:21 +0200
commitbeb6b57b3b1a1fe6ebc208d2edc12b504f69e29f (patch)
tree30d99cee1032ce3fccf1c1d7f509f6fd49f2d037 /python/qemu/machine/pylintrc
parentiotests/297: add --namespace-packages to mypy arguments (diff)
downloadqemu-beb6b57b3b1a1fe6ebc208d2edc12b504f69e29f.tar.gz
qemu-beb6b57b3b1a1fe6ebc208d2edc12b504f69e29f.tar.xz
qemu-beb6b57b3b1a1fe6ebc208d2edc12b504f69e29f.zip
python: create qemu packages
move python/qemu/*.py to python/qemu/[machine, qmp, utils]/*.py and update import directives across the tree. This is done to create a PEP420 namespace package, in which we may create subpackages. To do this, the namespace directory ("qemu") should not have any modules in it. Those files will go into new 'machine', 'qmp' and 'utils' subpackages instead. Implement machine/__init__.py making the top-level classes and functions from its various modules available directly inside the package. Change qmp.py to qmp/__init__.py similarly, such that all of the useful QMP library classes are available directly from "qemu.qmp" instead of "qemu.qmp.qmp". Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Cleber Rosa <crosa@redhat.com> Message-id: 20210527211715.394144-10-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/qemu/machine/pylintrc')
-rw-r--r--python/qemu/machine/pylintrc58
1 files changed, 58 insertions, 0 deletions
diff --git a/python/qemu/machine/pylintrc b/python/qemu/machine/pylintrc
new file mode 100644
index 0000000000..3f69205000
--- /dev/null
+++ b/python/qemu/machine/pylintrc
@@ -0,0 +1,58 @@
+[MASTER]
+
+[MESSAGES CONTROL]
+
+# Disable the message, report, category or checker with the given id(s). You
+# can either give multiple identifiers separated by comma (,) or put this
+# option multiple times (only on the command line, not in the configuration
+# file where it should appear only once). You can also use "--disable=all" to
+# disable everything first and then reenable specific checks. For example, if
+# you want to run only the similarities checker, you can use "--disable=all
+# --enable=similarities". If you want to run only the classes checker, but have
+# no Warning level messages displayed, use "--disable=all --enable=classes
+# --disable=W".
+disable=too-many-arguments,
+ too-many-instance-attributes,
+ too-many-public-methods,
+
+[REPORTS]
+
+[REFACTORING]
+
+[MISCELLANEOUS]
+
+[LOGGING]
+
+[BASIC]
+
+# Good variable names which should always be accepted, separated by a comma.
+good-names=i,
+ j,
+ k,
+ ex,
+ Run,
+ _,
+ fd,
+ c,
+[VARIABLES]
+
+[STRING]
+
+[SPELLING]
+
+[FORMAT]
+
+[SIMILARITIES]
+
+# Ignore imports when computing similarities.
+ignore-imports=yes
+
+[TYPECHECK]
+
+[CLASSES]
+
+[IMPORTS]
+
+[DESIGN]
+
+[EXCEPTIONS]