浏览代码

run yapf on the code

skullY 5 年之前
父节点
当前提交
c7eede2249

+ 1 - 0
lib/python/qmk/tests/attrdict.py

@@ -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.
     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):
     def __init__(self, *args, **kwargs):
         super(AttrDict, self).__init__(*args, **kwargs)
         super(AttrDict, self).__init__(*args, **kwargs)
         self.__dict__ = self
         self.__dict__ = self

+ 2 - 1
lib/python/qmk/tests/test_qmk_errors.py

@@ -1,7 +1,8 @@
 from qmk.errors import NoSuchKeyboardError
 from qmk.errors import NoSuchKeyboardError
 
 
+
 def test_NoSuchKeyboardError():
 def test_NoSuchKeyboardError():
     try:
     try:
-        raise(NoSuchKeyboardError("test message"))
+        raise NoSuchKeyboardError("test message")
     except NoSuchKeyboardError as e:
     except NoSuchKeyboardError as e:
         assert e.message == 'test message'
         assert e.message == 'test message'

+ 1 - 0
lib/python/qmk/tests/test_qmk_keymap.py

@@ -1,5 +1,6 @@
 import qmk.keymap
 import qmk.keymap
 
 
+
 def test_template_onekey_proton_c():
 def test_template_onekey_proton_c():
     templ = qmk.keymap.template('handwired/onekey/proton_c')
     templ = qmk.keymap.template('handwired/onekey/proton_c')
     assert templ == qmk.keymap.DEFAULT_KEYMAP_C
     assert templ == qmk.keymap.DEFAULT_KEYMAP_C

+ 1 - 0
lib/python/qmk/tests/test_qmk_path.py

@@ -2,6 +2,7 @@ import os
 
 
 import qmk.path
 import qmk.path
 
 
+
 def test_keymap_onekey_pytest():
 def test_keymap_onekey_pytest():
     path = qmk.path.keymap('handwired/onekey/pytest')
     path = qmk.path.keymap('handwired/onekey/pytest')
     assert path == 'keyboards/handwired/onekey/keymaps'
     assert path == 'keyboards/handwired/onekey/keymaps'