Skip to content

remove bad-whitespace pylint directive #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adafruit_seesaw/keypad.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Keypad(Seesaw):
EDGE_RISING = 3

def __init__(self, i2c_bus, addr=0x49, drdy=None):
super(Keypad, self).__init__(i2c_bus, addr, drdy)
super().__init__(i2c_bus, addr, drdy)
self._interrupt_enabled = False

@property
Expand Down
2 changes: 1 addition & 1 deletion adafruit_seesaw/tftshield18.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TFTShield18(Seesaw):
_button_mask = 0xFF

def __init__(self, i2c_bus=board.I2C(), addr=0x2E):
super(TFTShield18, self).__init__(i2c_bus, addr)
super().__init__(i2c_bus, addr)
self.pin_mode(_TFTSHIELD_RESET_PIN, self.OUTPUT)
self.pin_mode_bulk(self._button_mask, self.INPUT_PULLUP)

Expand Down
2 changes: 1 addition & 1 deletion examples/seesaw_crickit_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from board import SCL, SDA
import busio
from adafruit_motor import servo
from adafruit_seesaw.seesaw import Seesaw
from adafruit_seesaw.pwmout import PWMOut
from adafruit_motor import servo

# from analogio import AnalogOut
# import board
Expand Down
2 changes: 0 additions & 2 deletions examples/seesaw_joy_featherwing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@

from adafruit_seesaw.seesaw import Seesaw

# pylint: disable=bad-whitespace
BUTTON_RIGHT = const(6)
BUTTON_DOWN = const(7)
BUTTON_LEFT = const(9)
BUTTON_UP = const(10)
BUTTON_SEL = const(14)
# pylint: enable=bad-whitespace
button_mask = const(
(1 << BUTTON_RIGHT)
| (1 << BUTTON_DOWN)
Expand Down
2 changes: 0 additions & 2 deletions examples/seesaw_minitft_featherwing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from adafruit_seesaw.seesaw import Seesaw

# pylint: disable=bad-whitespace
BUTTON_RIGHT = const(7)
BUTTON_DOWN = const(4)
BUTTON_LEFT = const(3)
Expand All @@ -14,7 +13,6 @@
BUTTON_A = const(10)
BUTTON_B = const(9)

# pylint: enable=bad-whitespace
button_mask = const(
(1 << BUTTON_RIGHT)
| (1 << BUTTON_DOWN)
Expand Down