summaryrefslogtreecommitdiffstats
path: root/lib/python/kle2xy.py
Commit message (Collapse)AuthorAgeFilesLines
* [kle2info] Trim the code in `kle2xy` (#8955)Keenan Brock2020-05-151-28/+8
| | | | | | | | | | | | | | * [kle2jinfo] use min/max instead of if This is a slight change. Before, the key_skel would keep the invalid value for future keys. I think this is what was actually intended. * [kle2info] calculate x x is the current_x * key_size + (key_size/2) y is the current_y * key_size + (key_size/2) no reason to track both
* kle2info: trim down x and y outputKeenan Brock2020-04-261-2/+2
| | | | | | | | | fixes quirks with float implementation. before: {"label":"Esc", "x":0.66, "y":1.45}, {"label":"!", "x":1.6600000000000001, "y":1.45} after: {"label":"Esc", "x":0.66, "y":1.45}, {"label":"!", "x":1.66, "y":1.45}
* Add flake8 to our test suite and fix all errors (#7379)skullydazed2019-11-201-1/+1
| | | | | | * Add flake8 to our test suite and fix all errors * Add some documentation
* format code according to conventions [skip ci]QMK Bot2019-11-131-13/+4
|
* Add cli convert subcommand, from raw KLE to JSON (#6898)Cody Bender2019-11-121-0/+155
* Add initial pass at KLE convert * Add cli log on convert * Move kle2xy, add absolute filepath arg support * Add overwrite flag, and context sensitive conversion * Update docs/cli.md * Fix converter.py typo * Add convert unit test * Rename to kle2qmk * Rename subcommand * Rename subcommand to kle2json * Change tests to cover rename * Rename in __init__.py * Update CLI docs with new subcommand name * Fix from suggestions in PR #6898 * Help with cases of case sensitivity * Update cli.md * Use angle brackets to indicate required option * Make the output text more accurate