fix(lint): lint all the things; be more flexible in boards dir

This commit is contained in:
Josh Klar
2021-06-20 13:59:59 -07:00
parent 7400f43cf8
commit f79e508566
6 changed files with 291 additions and 57 deletions

View File

@@ -22,7 +22,7 @@ class KeyAttrDict(AttrDict):
def __getattr__(self, key):
try:
return super(KeyAttrDict, self).__getattr__(key)
except:
except Exception:
pass
# Modifiers
if key in ('LEFT_CONTROL', 'LCTRL', 'LCTL'):
@@ -514,7 +514,7 @@ class KeyAttrDict(AttrDict):
elif key in ('HID_SWITCH', 'HID'):
make_key(names=('HID_SWITCH', 'HID'), on_press=handlers.hid_switch)
else:
raise ValueError("Invalid key")
raise ValueError('Invalid key')
return self.__getattr__(key)