xref: /qemu/python/tests/qapi-isort.sh (revision fc8da54ec43cf6302ac496d8fe54832812954679)
1#!/bin/sh -e
2# SPDX-License-Identifier: GPL-2.0-or-later
3
4python3 -m isort --sp . -c ../scripts/qapi/
5# Force isort to recognize "compat" as a local module and not third-party
6python3 -m isort --sp . -c -p compat -p qapidoc_legacy \
7        ../docs/sphinx/qapi_domain.py \
8        ../docs/sphinx/qapidoc.py
9