qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] tests/functional: Fix various problems reported by pylint
@ 2025-10-15  9:54 Thomas Huth
  2025-10-15  9:54 ` [PATCH 1/6] tests/functional: Fix problems in asset.py " Thomas Huth
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Thomas Huth @ 2025-10-15  9:54 UTC (permalink / raw)
  To: qemu-devel, Daniel P. Berrangé; +Cc: Philippe Mathieu-Daudé

Using pylint to improve the code quality in the tests/functional/qemu_test
a little bit, for example:

- put the doc strings in the right locations (after the "def" line, not
  in front of it)
- use the right indentation everywhere (4 spaces)
- use isinstance() instead of checking via type()
- use lazy logging strings

Thomas Huth (6):
  tests/functional: Fix problems in asset.py reported by pylint
  tests/functional: Fix problems in decorators.py reported by pylint
  tests/functional: Fix problems in linuxkerenl.py reported by pylint
  tests/functional: Fix problems in testcase.py reported by pylint
  tests/functional: Fix problems in uncompress.py reported by pylint
  tests/functional: Fix problems in utils.py reported by pylint

 tests/functional/qemu_test/asset.py       |  24 ++-
 tests/functional/qemu_test/decorators.py  | 176 ++++++++-------
 tests/functional/qemu_test/linuxkernel.py |  10 +-
 tests/functional/qemu_test/testcase.py    | 251 +++++++++++-----------
 tests/functional/qemu_test/uncompress.py  |  40 ++--
 tests/functional/qemu_test/utils.py       |  22 +-
 6 files changed, 262 insertions(+), 261 deletions(-)

-- 
2.51.0



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-10-23 15:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-15  9:54 [PATCH 0/6] tests/functional: Fix various problems reported by pylint Thomas Huth
2025-10-15  9:54 ` [PATCH 1/6] tests/functional: Fix problems in asset.py " Thomas Huth
2025-10-15  9:54 ` [PATCH 2/6] tests/functional: Fix problems in decorators.py " Thomas Huth
2025-10-22 19:15   ` Philippe Mathieu-Daudé
2025-10-15  9:54 ` [PATCH 3/6] tests/functional: Fix problems in linuxkerenl.py " Thomas Huth
2025-10-22 19:14   ` Philippe Mathieu-Daudé
2025-10-23  6:46     ` Thomas Huth
2025-10-23 15:13       ` John Snow
2025-10-15  9:54 ` [PATCH 4/6] tests/functional: Fix problems in testcase.py " Thomas Huth
2025-10-22 19:10   ` Philippe Mathieu-Daudé
2025-10-23  4:57     ` Thomas Huth
2025-10-15  9:54 ` [PATCH 5/6] tests/functional: Fix problems in uncompress.py " Thomas Huth
2025-10-22 19:07   ` Philippe Mathieu-Daudé
2025-10-15  9:54 ` [PATCH 6/6] tests/functional: Fix problems in utils.py " Thomas Huth
2025-10-22 19:07   ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).