]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
run yapf on the code
authorskullY <skullydazed@gmail.com>
Thu, 22 Aug 2019 06:46:51 +0000 (23:46 -0700)
committerskullydazed <skullydazed@users.noreply.github.com>
Sat, 7 Sep 2019 14:58:41 +0000 (07:58 -0700)
lib/python/qmk/tests/attrdict.py
lib/python/qmk/tests/test_qmk_errors.py
lib/python/qmk/tests/test_qmk_keymap.py
lib/python/qmk/tests/test_qmk_path.py

index a2584b923337be0f9455e70ab0cf9d731abb6f17..391c75c4e1c8af57de6395fde4cdafb3a5bb4104 100644 (file)
@@ -3,6 +3,7 @@ class AttrDict(dict):
 
     This should only be used to mock objects for unit testing. Please do not use this outside of qmk.tests.
     """
+
     def __init__(self, *args, **kwargs):
         super(AttrDict, self).__init__(*args, **kwargs)
         self.__dict__ = self
index 3f6b567137c14b4879a2bfd107aba9c3ea40580d..1d8690b7efc55764709c9383aafb23ca51f9a77e 100644 (file)
@@ -1,7 +1,8 @@
 from qmk.errors import NoSuchKeyboardError
 
+
 def test_NoSuchKeyboardError():
     try:
-        raise(NoSuchKeyboardError("test message"))
+        raise NoSuchKeyboardError("test message")
     except NoSuchKeyboardError as e:
         assert e.message == 'test message'
index 6a565ee900c1d3b5ddf147c19b7ed514ad40d400..2db625600e90bda9bbaaa0ab6bfcf0f873e0c6d5 100644 (file)
@@ -1,5 +1,6 @@
 import qmk.keymap
 
+
 def test_template_onekey_proton_c():
     templ = qmk.keymap.template('handwired/onekey/proton_c')
     assert templ == qmk.keymap.DEFAULT_KEYMAP_C
index 23816be7ede28cf9b4b6efdf700f096a5d4548d9..94dbf3a6a6a21b283b38f98f55a314a380cfe741 100644 (file)
@@ -2,6 +2,7 @@ import os
 
 import qmk.path
 
+
 def test_keymap_onekey_pytest():
     path = qmk.path.keymap('handwired/onekey/pytest')
     assert path == 'keyboards/handwired/onekey/keymaps'