fix(lint): fix all outstanding linter errors
This commit is contained in:
parent
3797797b43
commit
54f4644b5c
@ -1,6 +1,7 @@
|
|||||||
from adafruit_ble import BLERadio
|
from adafruit_ble import BLERadio
|
||||||
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
|
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
|
||||||
from adafruit_ble.services.standard.hid import HIDService
|
from adafruit_ble.services.standard.hid import HIDService
|
||||||
|
|
||||||
from kmk.hid import AbstractHID
|
from kmk.hid import AbstractHID
|
||||||
|
|
||||||
BLE_APPEARANCE_HID_KEYBOARD = 961
|
BLE_APPEARANCE_HID_KEYBOARD = 961
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import pulseio
|
import pulseio
|
||||||
|
from micropython import const
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from math import e, exp, pi, sin
|
from math import e, exp, pi, sin
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
led_config = {
|
led_config = {
|
||||||
'brightness_step': 5,
|
'brightness_step': 5,
|
||||||
|
@ -46,13 +46,13 @@ class MatrixScanner:
|
|||||||
if self.diode_orientation == DiodeOrientation.COLUMNS:
|
if self.diode_orientation == DiodeOrientation.COLUMNS:
|
||||||
self.outputs = [
|
self.outputs = [
|
||||||
x
|
x
|
||||||
if x.__class__.__name__ is 'DigitalInOut'
|
if x.__class__.__name__ == 'DigitalInOut'
|
||||||
else digitalio.DigitalInOut(x)
|
else digitalio.DigitalInOut(x)
|
||||||
for x in cols
|
for x in cols
|
||||||
]
|
]
|
||||||
self.inputs = [
|
self.inputs = [
|
||||||
x
|
x
|
||||||
if x.__class__.__name__ is 'DigitalInOut'
|
if x.__class__.__name__ == 'DigitalInOut'
|
||||||
else digitalio.DigitalInOut(x)
|
else digitalio.DigitalInOut(x)
|
||||||
for x in rows
|
for x in rows
|
||||||
]
|
]
|
||||||
@ -60,13 +60,13 @@ class MatrixScanner:
|
|||||||
elif self.diode_orientation == DiodeOrientation.ROWS:
|
elif self.diode_orientation == DiodeOrientation.ROWS:
|
||||||
self.outputs = [
|
self.outputs = [
|
||||||
x
|
x
|
||||||
if x.__class__.__name__ is 'DigitalInOut'
|
if x.__class__.__name__ == 'DigitalInOut'
|
||||||
else digitalio.DigitalInOut(x)
|
else digitalio.DigitalInOut(x)
|
||||||
for x in rows
|
for x in rows
|
||||||
]
|
]
|
||||||
self.inputs = [
|
self.inputs = [
|
||||||
x
|
x
|
||||||
if x.__class__.__name__ is 'DigitalInOut'
|
if x.__class__.__name__ == 'DigitalInOut'
|
||||||
else digitalio.DigitalInOut(x)
|
else digitalio.DigitalInOut(x)
|
||||||
for x in cols
|
for x in cols
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
from micropython import const
|
||||||
|
|
||||||
import time
|
import time
|
||||||
from math import e, exp, pi, sin
|
from math import e, exp, pi, sin
|
||||||
from micropython import const
|
|
||||||
|
|
||||||
rgb_config = {
|
rgb_config = {
|
||||||
'pixels': None,
|
'pixels': None,
|
||||||
|
@ -18,9 +18,10 @@ extend-ignore =
|
|||||||
C812, C813, C815,
|
C812, C813, C815,
|
||||||
|
|
||||||
per-file-ignores =
|
per-file-ignores =
|
||||||
# Allow misaligned array entries, crazy line lengths, unused variables, and
|
# Allow misaligned array entries, crazy line lengths, unused variables,
|
||||||
# multiple spaces after commas in lists (for grid alignment)
|
# multiple spaces after commas in lists (for grid alignment), and put
|
||||||
user_keymaps/**/*.py: E131,F401,E501,E241,E131,BLK100
|
# your imports in whatever order you want
|
||||||
|
user_keymaps/**/*.py: E131,F401,E501,E241,E131,BLK100,I003
|
||||||
tests/test_data/keymaps/**/*.py: F401,E501
|
tests/test_data/keymaps/**/*.py: F401,E501
|
||||||
# Forgive me for my RAM hack sins
|
# Forgive me for my RAM hack sins
|
||||||
kmk/preload_imports.py: I001,I003,I004,F401
|
kmk/preload_imports.py: I001,I003,I004,F401
|
||||||
|
Loading…
x
Reference in New Issue
Block a user