aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2024-11-01 13:36:59 -0400
committerKevin Wolf <kwolf@redhat.com>2024-11-25 11:03:14 +0100
commit4c600fdcd49c5661b658c325100dcd7754b0a479 (patch)
tree486f5b91ae903e87ee1002bb9e72223b4c56a8f2
parentd808888429dbdd308e7348cb112ece06d287b87a (diff)
downloadqemu-4c600fdcd49c5661b658c325100dcd7754b0a479.zip
qemu-4c600fdcd49c5661b658c325100dcd7754b0a479.tar.gz
qemu-4c600fdcd49c5661b658c325100dcd7754b0a479.tar.bz2
python: disable too-many-positional-arguments warning
Newest versions of pylint complain about specifically positional arguments in addition to too many in general. We already disable the general case, so silence this new warning too. Signed-off-by: John Snow <jsnow@redhat.com> Message-ID: <20241101173700.965776-4-jsnow@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--python/setup.cfg1
-rw-r--r--tests/qemu-iotests/pylintrc1
2 files changed, 2 insertions, 0 deletions
diff --git a/python/setup.cfg b/python/setup.cfg
index 3b4e2cc..cf5af7e 100644
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -142,6 +142,7 @@ ignore_missing_imports = True
disable=consider-using-f-string,
consider-using-with,
too-many-arguments,
+ too-many-positional-arguments,
too-many-function-args, # mypy handles this with less false positives.
too-many-instance-attributes,
no-member, # mypy also handles this better.
diff --git a/tests/qemu-iotests/pylintrc b/tests/qemu-iotests/pylintrc
index 05b75ee..c5f4833 100644
--- a/tests/qemu-iotests/pylintrc
+++ b/tests/qemu-iotests/pylintrc
@@ -13,6 +13,7 @@ disable=invalid-name,
no-else-return,
too-few-public-methods,
too-many-arguments,
+ too-many-positional-arguments,
too-many-branches,
too-many-lines,
too-many-locals,