Skip to content

Commit

Permalink
Add import order/style check with isort
Browse files Browse the repository at this point in the history
Avocado has been using isort to enforce one import order/code style
for a long time, with very good results.  Let's expand the same to
Avocado-VT.  With a common code style across Avocado and Avocado-VT
it'll be easier to move libraries to the common autils repo.

Reference: avocado-framework/autils#3
Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu authored and srikanth aithal committed Aug 23, 2024
1 parent e965f32 commit b93098a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions virttest/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,21 @@
# Author: Satheesh Rajendran <[email protected]>


import re
import json
import logging
import os
import platform
import re
import time
import os
import uuid
import xml.etree.ElementTree as ET


from avocado.core import exceptions
from avocado.utils import cpu as utils
from avocado.utils import path, process
from avocado.utils.software_manager import manager
from avocado.utils import process
from avocado.utils import path
from avocado.core import exceptions
from virttest import utils_misc
from virttest import libvirt_version
from virttest import data_dir

from virttest import data_dir, libvirt_version, utils_misc

# lazy imports for dependencies that are not needed in all modes of use
# (as the cpu module is generic to qemu vm use only, libvirt is optional)
Expand Down

0 comments on commit b93098a

Please sign in to comment.