fix(lint): fix all outstanding linter errors

This commit is contained in:
Josh Klar 2021-06-20 13:09:47 -07:00
parent 3797797b43
commit 54f4644b5c
No known key found for this signature in database
GPG Key ID: A4A0C7B4E8EEE222
5 changed files with 13 additions and 9 deletions

View File

@ -1,6 +1,7 @@
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.standard.hid import HIDService
from kmk.hid import AbstractHID
BLE_APPEARANCE_HID_KEYBOARD = 961

View File

@ -1,7 +1,8 @@
import pulseio
from micropython import const
import time
from math import e, exp, pi, sin
from micropython import const
led_config = {
'brightness_step': 5,

View File

@ -46,13 +46,13 @@ class MatrixScanner:
if self.diode_orientation == DiodeOrientation.COLUMNS:
self.outputs = [
x
if x.__class__.__name__ is 'DigitalInOut'
if x.__class__.__name__ == 'DigitalInOut'
else digitalio.DigitalInOut(x)
for x in cols
]
self.inputs = [
x
if x.__class__.__name__ is 'DigitalInOut'
if x.__class__.__name__ == 'DigitalInOut'
else digitalio.DigitalInOut(x)
for x in rows
]
@ -60,13 +60,13 @@ class MatrixScanner:
elif self.diode_orientation == DiodeOrientation.ROWS:
self.outputs = [
x
if x.__class__.__name__ is 'DigitalInOut'
if x.__class__.__name__ == 'DigitalInOut'
else digitalio.DigitalInOut(x)
for x in rows
]
self.inputs = [
x
if x.__class__.__name__ is 'DigitalInOut'
if x.__class__.__name__ == 'DigitalInOut'
else digitalio.DigitalInOut(x)
for x in cols
]

View File

@ -1,6 +1,7 @@
from micropython import const
import time
from math import e, exp, pi, sin
from micropython import const
rgb_config = {
'pixels': None,

View File

@ -18,9 +18,10 @@ extend-ignore =
C812, C813, C815,
per-file-ignores =
# Allow misaligned array entries, crazy line lengths, unused variables, and
# multiple spaces after commas in lists (for grid alignment)
user_keymaps/**/*.py: E131,F401,E501,E241,E131,BLK100
# Allow misaligned array entries, crazy line lengths, unused variables,
# multiple spaces after commas in lists (for grid alignment), and put
# your imports in whatever order you want
user_keymaps/**/*.py: E131,F401,E501,E241,E131,BLK100,I003
tests/test_data/keymaps/**/*.py: F401,E501
# Forgive me for my RAM hack sins
kmk/preload_imports.py: I001,I003,I004,F401