From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8541DC369D0 for ; Thu, 17 Apr 2025 21:32:18 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u5WpT-0007L7-1z; Thu, 17 Apr 2025 17:31:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u5WpR-0007Ks-KJ for qemu-devel@nongnu.org; Thu, 17 Apr 2025 17:31:25 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u5WpO-0000Ul-QE for qemu-devel@nongnu.org; Thu, 17 Apr 2025 17:31:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744925481; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UmLGDH1nX2+M38G//F2H+1ywzKQwloPv3mqbaFuXncE=; b=JWMQf8CQusi+kip2N3SZXlylpHk4ZAboiwniv7AYt4A53sGOl+u6Z7fAaJ/GV5qI4UqaRf doNyyQwOGVj9kXW2Ym325jGE6S0h8ZPD7lvE2N8wq+607sH1d6LQvHuwYlqMyVOunaOIlG JBZhhcrZfLMLOilR0jcysw93eP06P54= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-632-0t1SjGnGNC6FTKFLbiVIYw-1; Thu, 17 Apr 2025 17:31:19 -0400 X-MC-Unique: 0t1SjGnGNC6FTKFLbiVIYw-1 X-Mimecast-MFC-AGG-ID: 0t1SjGnGNC6FTKFLbiVIYw_1744925478 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 583C3195608E; Thu, 17 Apr 2025 21:31:18 +0000 (UTC) Received: from jsnow-thinkpadp16vgen1.westford.csb (unknown [10.22.64.220]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6B1B719560A3; Thu, 17 Apr 2025 21:31:15 +0000 (UTC) From: John Snow To: qemu-devel@nongnu.org Cc: John Snow , Cleber Rosa , Markus Armbruster , Peter Maydell , Michael Roth Subject: [PATCH v2 0/5] python: add QAPI and qapidoc et al to python linter tests Date: Thu, 17 Apr 2025 17:31:09 -0400 Message-ID: <20250417213114.2336239-1-jsnow@redhat.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Received-SPF: pass client-ip=170.10.133.124; envelope-from=jsnow@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hiya, this series turns on automated linting for scripts/qapi,=0D docs/sphinx/qapidoc.py and docs/sphinx/qapi_domain.py.=0D =0D This includes flake8/isort/pylint/mypy for scripts/qapi, but omits mypy=0D from the Sphinx plugins owing to my inability to strictly type the=0D extensions given the wide versions of Sphinx we actually support.=0D =0D Though I have been using black in my own development, I have not yet=0D enabled it anywhere automatically. Maybe soon.=0D =0D V2:=0D - Mostly commit message updates based on Markus's's's review.=0D =0D John Snow (5):=0D qapi: Add some pylint ignores=0D docs/qapidoc: linting fixes=0D python: update missing dependencies from minreqs=0D python: add qapi static analysis tests=0D qapi: delete un-needed python static analysis configs=0D =0D docs/sphinx/qapi_domain.py | 25 ++++++++++++++-----------=0D docs/sphinx/qapidoc.py | 5 +++--=0D python/setup.cfg | 1 +=0D python/tests/minreqs.txt | 25 +++++++++++++++++++++++++=0D python/tests/qapi-flake8.sh | 4 ++++=0D python/tests/qapi-isort.sh | 6 ++++++=0D python/tests/qapi-mypy.sh | 2 ++=0D python/tests/qapi-pylint.sh | 6 ++++++=0D scripts/qapi/.flake8 | 3 ---=0D scripts/qapi/.isort.cfg | 7 -------=0D scripts/qapi/backend.py | 2 ++=0D scripts/qapi/mypy.ini | 4 ----=0D scripts/qapi/pylintrc | 1 +=0D 13 files changed, 64 insertions(+), 27 deletions(-)=0D create mode 100755 python/tests/qapi-flake8.sh=0D create mode 100755 python/tests/qapi-isort.sh=0D create mode 100755 python/tests/qapi-mypy.sh=0D create mode 100755 python/tests/qapi-pylint.sh=0D delete mode 100644 scripts/qapi/.flake8=0D delete mode 100644 scripts/qapi/.isort.cfg=0D delete mode 100644 scripts/qapi/mypy.ini=0D =0D -- =0D 2.48.1=0D =0D