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 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,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
import time
import math
import sys
import time
from PIL import Image, ImageDraw
from PIL import Image
from PIL import ImageDraw
import ST7735 as ST7735
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,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
from PIL import Image
import ST7735
import time
import sys
import time
from PIL import Image
import ST7735
print("""
gif.py - Display a gif on the LCD.

View File

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

View File

@@ -1,10 +1,8 @@
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
import time
import ST7735
from PIL import Image, ImageDraw, ImageFont
import ST7735
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,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
from PIL import Image, ImageDraw, ImageFont
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.
"""
from setuptools import setup, __version__
from pkg_resources import parse_version
from setuptools import __version__, setup
minimum_version = parse_version('30.4.0')

View File

@@ -20,11 +20,10 @@
# THE SOFTWARE.
import numbers
import time
import numpy as np
import spidev
import RPi.GPIO as GPIO
import spidev
__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.
"""
import sys
import mock
import pytest