QA: Apply isort suggestions.

This commit is contained in:
Phil Howard
2023-11-03 13:34:19 +00:00
parent f6599b1854
commit 147ccfcc11
9 changed files with 19 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
from st7735 import * # noqa F403
from warnings import warn from warnings import warn
warn("Using \"import ST7735\" is deprecated. Please \"import st7735\" (all lowercase)!", DeprecationWarning, stacklevel=2) from st7735 import * # noqa F403
warn("Using \"import ST7735\" is deprecated. Please \"import st7735\" (all lowercase)!", DeprecationWarning, stacklevel=2)

View File

@@ -18,12 +18,12 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE. # THE SOFTWARE.
import time
import math import math
import sys import sys
import time
from PIL import Image, ImageDraw
from PIL import Image
from PIL import ImageDraw
import ST7735 as ST7735 import ST7735 as ST7735
SPI_SPEED_MHZ = 10 # Higher speed = higher framerate SPI_SPEED_MHZ = 10 # Higher speed = higher framerate

View File

@@ -18,10 +18,12 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE. # THE SOFTWARE.
from PIL import Image
import ST7735
import time
import sys import sys
import time
from PIL import Image
import ST7735
print(""" print("""
gif.py - Display a gif on the LCD. gif.py - Display a gif on the LCD.

View File

@@ -21,6 +21,7 @@
import sys import sys
from PIL import Image from PIL import Image
import ST7735 as ST7735 import ST7735 as ST7735
print(""" print("""

View File

@@ -1,10 +1,8 @@
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
import time import time
import ST7735 from PIL import Image, ImageDraw, ImageFont
import ST7735
MESSAGE = "Hello World! How are you today?" MESSAGE = "Hello World! How are you today?"

View File

@@ -18,9 +18,7 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE. # THE SOFTWARE.
from PIL import Image from PIL import Image, ImageDraw, ImageFont
from PIL import ImageDraw
from PIL import ImageFont
import ST7735 import ST7735

View File

@@ -19,8 +19,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
""" """
from setuptools import setup, __version__
from pkg_resources import parse_version from pkg_resources import parse_version
from setuptools import __version__, setup
minimum_version = parse_version('30.4.0') minimum_version = parse_version('30.4.0')

View File

@@ -20,11 +20,10 @@
# THE SOFTWARE. # THE SOFTWARE.
import numbers import numbers
import time import time
import numpy as np import numpy as np
import spidev
import RPi.GPIO as GPIO import RPi.GPIO as GPIO
import spidev
__version__ = "0.0.5" __version__ = "0.0.5"

View File

@@ -3,6 +3,7 @@ These allow the mocking of various Python modules
that might otherwise have runtime side-effects. that might otherwise have runtime side-effects.
""" """
import sys import sys
import mock import mock
import pytest import pytest