Skip to content

Commit

Permalink
fixed import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdr committed Nov 7, 2024
1 parent 8da0863 commit c056e0b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
1 change: 1 addition & 0 deletions examples/function/pad_detect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import time

from qwstpad import ADDRESSES, QwSTPad

"""
Expand Down
1 change: 1 addition & 0 deletions examples/function/read_all.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import time

from qwstpad import ADDRESSES, QwSTPad

"""
Expand Down
8 changes: 5 additions & 3 deletions examples/games/multi_player.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from qwstpad import ADDRESSES, QwSTPad
import pygame
from collections import namedtuple
import math
from collections import namedtuple

import pygame

from qwstpad import ADDRESSES, QwSTPad

WIDTH, HEIGHT = 500, 500

Expand Down
10 changes: 6 additions & 4 deletions examples/games/random_maze.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from qwstpad import QwSTPad
import time
import gc
import random
import pygame
import time
from collections import namedtuple
import gc

import pygame

from qwstpad import QwSTPad

WIDTH, HEIGHT = 500, 500

Expand Down
4 changes: 2 additions & 2 deletions tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ def test_read_buttons(smbus, qwstpad):

def test_config_port(smbus, qwstpad):
dev = smbus.SMBus(1)
pad = qwstpad.QwSTPad(dev)
qwstpad.QwSTPad(dev)

assert dev.regs[0x06] == 0b1111100100111111


def test_polarity_port(smbus, qwstpad):
dev = smbus.SMBus(1)
pad = qwstpad.QwSTPad(dev)
qwstpad.QwSTPad(dev)

assert dev.regs[0x04] == 0b1111100000111111

Expand Down
1 change: 0 additions & 1 deletion tests/tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from i2cdevice import MockSMBus
import struct

I2C_SMBUS = 0x0720
I2C_SMBUS_BYTE_DATA = 2
Expand Down

0 comments on commit c056e0b

Please sign in to comment.