mirror of https://github.com/akuker/RASCSI.git
Reformat python sources with black
This commit is contained in:
parent
84f52d24b1
commit
40535a3bc0
|
@ -85,9 +85,9 @@ class PiscsiCmds:
|
||||||
if PurePath(member["path"]).suffix.lower()[1:] == PROPERTIES_SUFFIX:
|
if PurePath(member["path"]).suffix.lower()[1:] == PROPERTIES_SUFFIX:
|
||||||
member["is_properties_file"] = True
|
member["is_properties_file"] = True
|
||||||
elif f"{member['path']}.{PROPERTIES_SUFFIX}" in properties_files:
|
elif f"{member['path']}.{PROPERTIES_SUFFIX}" in properties_files:
|
||||||
member[
|
member["related_properties_file"] = (
|
||||||
"related_properties_file"
|
f"{member['path']}.{PROPERTIES_SUFFIX}"
|
||||||
] = f"{member['path']}.{PROPERTIES_SUFFIX}"
|
)
|
||||||
|
|
||||||
archive_contents.append(member)
|
archive_contents.append(member)
|
||||||
except (unarchiver.LsarCommandError, unarchiver.LsarOutputError):
|
except (unarchiver.LsarCommandError, unarchiver.LsarOutputError):
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Module with methods that interact with the Pi system
|
Module with methods that interact with the Pi system
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Module for central PiSCSI control board configuration parameters
|
Module for central PiSCSI control board configuration parameters
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ctrlboard_hw.ctrlboard_hw_constants import CtrlBoardHardwareConstants
|
from ctrlboard_hw.ctrlboard_hw_constants import CtrlBoardHardwareConstants
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module for interfacing between the menu controller and the PiSCSI Control Board hardware"""
|
"""Module for interfacing between the menu controller and the PiSCSI Control Board hardware"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module for test printing events when buttons from the PiSCSI Control Board are pressed"""
|
"""Module for test printing events when buttons from the PiSCSI Control Board are pressed"""
|
||||||
|
|
||||||
import observer
|
import observer
|
||||||
from ctrlboard_hw.hardware_button import HardwareButton
|
from ctrlboard_hw.hardware_button import HardwareButton
|
||||||
from ctrlboard_hw.encoder import Encoder
|
from ctrlboard_hw.encoder import Encoder
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module providing the profile cycler class for the PiSCSI Control Board UI"""
|
"""Module providing the profile cycler class for the PiSCSI Control Board UI"""
|
||||||
|
|
||||||
from ctrlboard_menu_builder import CtrlBoardMenuBuilder
|
from ctrlboard_menu_builder import CtrlBoardMenuBuilder
|
||||||
from menu.cycler import Cycler
|
from menu.cycler import Cycler
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module providing the shutdown cycler for the PiSCSI Control Board UI """
|
"""Module providing the shutdown cycler for the PiSCSI Control Board UI """
|
||||||
|
|
||||||
from menu.cycler import Cycler
|
from menu.cycler import Cycler
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module providing the interface to the PiSCSI Control Board hardware"""
|
"""Module providing the interface to the PiSCSI Control Board hardware"""
|
||||||
|
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Module containing an implementation for reading the rotary encoder directions through
|
"""Module containing an implementation for reading the rotary encoder directions through
|
||||||
the i2c multiplexer + interrupt"""
|
the i2c multiplexer + interrupt"""
|
||||||
|
|
||||||
from ctrlboard_hw.hardware_button import HardwareButton
|
from ctrlboard_hw.hardware_button import HardwareButton
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Module for interfacting with the pca9554 multiplexer
|
Module for interfacting with the pca9554 multiplexer
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# pylint: disable=c-extension-no-member
|
# pylint: disable=c-extension-no-member
|
||||||
import logging
|
import logging
|
||||||
import smbus
|
import smbus
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module for building the control board UI specific menus"""
|
"""Module for building the control board UI specific menus"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from menu.menu import Menu
|
from menu.menu import Menu
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module is the entry point for the PiSCSI Control Board UI"""
|
"""Module is the entry point for the PiSCSI Control Board UI"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module implementing a blank screensaver"""
|
"""Module implementing a blank screensaver"""
|
||||||
|
|
||||||
from menu.screensaver import ScreenSaver
|
from menu.screensaver import ScreenSaver
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module that implements a button cycling functionality"""
|
"""Module that implements a button cycling functionality"""
|
||||||
|
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
from menu.timer import Timer
|
from menu.timer import Timer
|
||||||
from piscsi.file_cmds import FileCmds
|
from piscsi.file_cmds import FileCmds
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module for creating a menu"""
|
"""Module for creating a menu"""
|
||||||
|
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module for creating menus"""
|
"""Module for creating menus"""
|
||||||
|
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from menu.menu import Menu
|
from menu.menu import Menu
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module providing the menu controller."""
|
"""Module providing the menu controller."""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import importlib
|
import importlib
|
||||||
from typing import Dict, Optional
|
from typing import Dict, Optional
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module provides the abstract menu renderer class"""
|
"""Module provides the abstract menu renderer class"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import math
|
import math
|
||||||
import itertools
|
import itertools
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module providing the Adafruit SSD1306 menu renderer class"""
|
"""Module providing the Adafruit SSD1306 menu renderer class"""
|
||||||
|
|
||||||
# pylint: disable=import-error
|
# pylint: disable=import-error
|
||||||
from board import SCL, SDA
|
from board import SCL, SDA
|
||||||
import busio
|
import busio
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module providing the luma oled menu renderer class"""
|
"""Module providing the luma oled menu renderer class"""
|
||||||
|
|
||||||
from luma.core.interface.serial import i2c
|
from luma.core.interface.serial import i2c
|
||||||
from menu.menu_renderer import MenuRenderer
|
from menu.menu_renderer import MenuRenderer
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module providing the menu screensaver class"""
|
"""Module providing the menu screensaver class"""
|
||||||
|
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
from menu.timer import Timer
|
from menu.timer import Timer
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module providing a timer class"""
|
"""Module providing a timer class"""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module providing implementations for menu transitions."""
|
"""Module providing implementations for menu transitions."""
|
||||||
|
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module for Observable part of the Observer pattern functionality"""
|
"""Module for Observable part of the Observer pattern functionality"""
|
||||||
|
|
||||||
from typing import List
|
from typing import List
|
||||||
from observer import Observer
|
from observer import Observer
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module implementing the Observer part of the Observer pattern"""
|
"""Module implementing the Observer part of the Observer pattern"""
|
||||||
|
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Module implementing the PiSCSI Control Board UI specific menu controller"""
|
"""Module implementing the PiSCSI Control Board UI specific menu controller"""
|
||||||
|
|
||||||
from ctrlboard_menu_builder import CtrlBoardMenuBuilder
|
from ctrlboard_menu_builder import CtrlBoardMenuBuilder
|
||||||
from menu.menu_builder import MenuBuilder
|
from menu.menu_builder import MenuBuilder
|
||||||
from menu.menu_controller import MenuController
|
from menu.menu_controller import MenuController
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Linux interrupt handling module
|
Linux interrupt handling module
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import signal
|
import signal
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue