pyproject: isort: sort import alphabetically within sections

By default, isort doesn't sort alphabetically within each
section. Make it do so, and fix the existing imports in
'tools/deploy_firmware.py' and in 'tools/device/turris_rdk_b.py'.

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
This commit is contained in:
Raphaël Mélotte
2022-03-10 17:37:38 +01:00
parent 6bb4b52514
commit 4430baddb9
3 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ import_heading_stdlib = "Standard library"
import_heading_thirdparty = "Third party"
import_heading_firstparty = "First party"
import_heading_localfolder = "Local folder"
force_alphabetical_sort_within_sections = true
[tool.pylint.messages_control]

View File

@@ -14,8 +14,8 @@ import sys
from device.axepoint import Axepoint
from device.glinet_b1300 import GlinetB1300
from device.prplos import GenericPrplOS
from device.turris_rdk_b import TurrisRdkb
from device.turris_prplos import TurrisPrplOS
from device.turris_rdk_b import TurrisRdkb
def main():

View File

@@ -17,7 +17,7 @@ import pexpect.fdpexpect
import pexpect.pxssh
from device.generic import GenericDevice
from device.serial import SerialDevice
from device.utils import ShellType, check_uboot_var, serial_cmd_err
from device.utils import check_uboot_var, serial_cmd_err, ShellType
class TurrisRdkb(GenericDevice):