diff options
| author | skullydazed <skullydazed@users.noreply.github.com> | 2019-11-20 14:54:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-20 14:54:18 -0800 |
| commit | f7bdc54c697ff24bec1bd0781666ac05401bafb2 (patch) | |
| tree | 704511c89bd36582fcd0a4a05ae4812222d9b11c /lib/python/kle2xy.py | |
| parent | d2115f7d1c3a314e997ec6800b6741d83115d6be (diff) | |
| download | qmk_firmware-f7bdc54c697ff24bec1bd0781666ac05401bafb2.tar.gz qmk_firmware-f7bdc54c697ff24bec1bd0781666ac05401bafb2.zip | |
Add flake8 to our test suite and fix all errors (#7379)
* Add flake8 to our test suite and fix all errors
* Add some documentation
Diffstat (limited to 'lib/python/kle2xy.py')
| -rw-r--r-- | lib/python/kle2xy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/kle2xy.py b/lib/python/kle2xy.py index 929144319..bff1d025b 100644 --- a/lib/python/kle2xy.py +++ b/lib/python/kle2xy.py | |||
| @@ -46,7 +46,7 @@ class KLE2xy(list): | |||
| 46 | if 'name' in properties: | 46 | if 'name' in properties: |
| 47 | self.name = properties['name'] | 47 | self.name = properties['name'] |
| 48 | 48 | ||
| 49 | def parse_layout(self, layout): | 49 | def parse_layout(self, layout): # noqa FIXME(skullydazed): flake8 says this has a complexity of 25, it should be refactored. |
| 50 | # Wrap this in a dictionary so hjson will parse KLE raw data | 50 | # Wrap this in a dictionary so hjson will parse KLE raw data |
| 51 | layout = '{"layout": [' + layout + ']}' | 51 | layout = '{"layout": [' + layout + ']}' |
| 52 | layout = hjson.loads(layout)['layout'] | 52 | layout = hjson.loads(layout)['layout'] |
