aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/tests/test_qmk_keymap.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow codegen of `keymap.json` => `keymap.c` without requiring layers/layout ↵Nick Brassel2024-11-241-5/+4
| | | | etc. (#23451)
* Remove handling of keyboard level keymap templates (#24234)Joel Challis2024-08-121-10/+0
|
* Small tweaks to keymap generation (#24240)Ryan2024-08-041-2/+1
|
* Remove `handwired/pytest/has_template` (#24232)Ryan2024-08-031-16/+29
|
* Macros in JSON keymaps (#14374)Zach White2021-11-221-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macros in json keymaps * add advanced macro support to json * add a note about escaping macro strings * add simple examples * format json * add support for language specific keymap extras * switch to dictionaries instead of inline text for macros * use SS_TAP on the innermost tap keycode * add the new macro format to the schema * document the macro limit * add the json keyword for syntax highlighting * fix format that vscode screwed up * Update feature_macros.md * add tests for macros * change ding to beep * add json support for SENDSTRING_BELL * update doc based on feedback from sigprof * document host_layout * remove unused var * improve carriage return handling * support tab characters as well * Update docs/feature_macros.md Co-authored-by: Nick Brassel <[email protected]> * escape backslash characters * format * flake8 * Update quantum/quantum_keycodes.h Co-authored-by: Nick Brassel <[email protected]>
* Migrate python tests away from onekey (#11367)Joel Challis2021-01-051-16/+16
| | | | | | | * Migrate python tests away from onekey * Add stub files to stop lint complaints * Make all the pytest keymaps compile
* Generate api data on each push (#10609)Zach White2020-10-251-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add new qmk generate-api command, to generate a complete set of API data. * Generate api data and push it to the keyboard repo * fix typo * Apply suggestions from code review Co-authored-by: Joel Challis <[email protected]> * fixup api workflow * remove file-changes-action * use a more mainstream github action * fix yaml error * Apply suggestions from code review Co-authored-by: Erovia <[email protected]> * more uniform date handling * make flake8 happy * Update lib/python/qmk/decorators.py Co-authored-by: Erovia <[email protected]> Co-authored-by: Joel Challis <[email protected]> Co-authored-by: Erovia <[email protected]>
* [CLI] Add c2json (#8817)0.10.30Erovia2020-10-061-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Basic keymap parsing finally works * Add 'keymap.json' creation to the qmk.keymap module * Add tests and fix formatting * Fix/exclude flake8 errors * Convert keymap.c to valid keymap.json * Fix some errors * Add tests * Finalize keymap.json creation, add json template * Add docs * Move pygments to the standard requirements * Add support for nameless layers, fix tests * Fix things after rebase * Add missing 'keymap' value. * Fix missing layer numbers from advanced keycodes Buckwich noticed that if the advanced keycode / layer toggling key contains a number, it goes missing. Now we properly handle them. Thx for noticing! * Apply suggestions from code review * fixup tests Co-authored-by: Zach White <[email protected]> Co-authored-by: skullY <[email protected]>
* CLI: fix `json2c` subcommand and add/fix tests (#9206)0.8.187Erovia2020-05-261-2/+2
| | | Co-authored-by: Zach White <[email protected]>
* run yapf on the codeskullY2019-09-071-0/+1
|
* Setup a python test frameworkskullY2019-09-071-0/+18