[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/8] python: disable too-many-positional-arguments warning
From: |
Kevin Wolf |
Subject: |
[PULL 5/8] python: disable too-many-positional-arguments warning |
Date: |
Thu, 14 Nov 2024 17:56:54 +0100 |
From: John Snow <jsnow@redhat.com>
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>
---
python/setup.cfg | 1 +
tests/qemu-iotests/pylintrc | 1 +
2 files changed, 2 insertions(+)
diff --git a/python/setup.cfg b/python/setup.cfg
index 3b4e2cc550..cf5af7e664 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 05b75ee59b..c5f4833e45 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,
--
2.47.0
- [PULL 0/8] Block layer patches, Kevin Wolf, 2024/11/14
- [PULL 1/8] migration: Check current_migration in migration_is_running(), Kevin Wolf, 2024/11/14
- [PULL 4/8] iotests: correct resultclass type in ReproducibleTestRunner, Kevin Wolf, 2024/11/14
- [PULL 5/8] python: disable too-many-positional-arguments warning,
Kevin Wolf <=
- [PULL 3/8] iotests: reflow ReproducibleTestRunner arguments, Kevin Wolf, 2024/11/14
- [PULL 2/8] parallels: fix possible int overflow, Kevin Wolf, 2024/11/14
- [PULL 6/8] python: silence pylint raising-non-exception error, Kevin Wolf, 2024/11/14
- [PULL 7/8] qdev-monitor: avoid QemuOpts in QMP device_add, Kevin Wolf, 2024/11/14
- [PULL 8/8] vl: use qmp_device_add() in qemu_create_cli_devices(), Kevin Wolf, 2024/11/14
- Re: [PULL 0/8] Block layer patches, Peter Maydell, 2024/11/15