mirror of
https://gitlab.com/prpl-foundation/prplmesh/prplMesh.git
synced 2025-12-20 01:21:22 +08:00
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:
@@ -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]
|
||||
|
||||
|
||||
@@ -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():
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user