]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: delete un-needed python static analysis configs
authorJohn Snow <jsnow@redhat.com>
Wed, 4 Jun 2025 20:03:54 +0000 (16:03 -0400)
committerJohn Snow <jsnow@redhat.com>
Thu, 5 Jun 2025 16:10:07 +0000 (12:10 -0400)
commit678868eee3947fa25e13ccf3abb004c9c418e8a2
tree7d2fdb54bb0583f961c2b7a6e8cd752d4c41c941
parent781e730556f3621a3f5f83e9b6afdc7d306f0094
qapi: delete un-needed python static analysis configs

Since the previous commit, python/setup.cfg applies to scripts/qapi/ as
well.  Configuration files in scripts/qapi/ override python/setup.cfg.

scripts/qapi/.flake8 and scripts/qapi/.isort.cfg actually match
python/setup.cfg exactly, and can go.

The differences between scripts/qapi/mypy.ini and python/setup.cfg are
harmless: namespace_packages being set to True is a requirement for the
PEP420 nested package structure of QEMU but not for scripts/qapi, but
has no effect on type checking the QAPI code. warn_unused_ignores is
used in python/ to be able to target a wide variety of mypy versions;
some of which that have added new ignore categories that are not present
in older versions.

Ultimately, scripts/qapi/mypy.ini can be removed without any real change
in behavior to how mypy enforces type safety there.

The pylint config is being left in place because the settings differ
enough from the python/ directory settings that we need a chit-chat on
how to merge them O:-)

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: 20250604200354.459501-7-jsnow@redhat.com
scripts/qapi/.flake8 [deleted file]
scripts/qapi/.isort.cfg [deleted file]
scripts/qapi/mypy.ini [deleted file]