qmk_firmware/lib/python/qmk/tests
Erovia fbfd5312b9
CLI: Validate JSON keymap input (#16261)
* Fix schema validator

It should use the passed schema.

* Add required attributes to keymap schema

* Rework subcommands to validate the JSON keymaps

The 'compile', 'flash' and 'json2c' subcommands were reworked to add
JSON keymap validation so error is reported for non-JSON and
non-compliant-JSON inputs.

* Fix required fields in keymap schema

* Add tests

* Fix compiling keymaps directly from keymap directory

* Schema should not require version for now.
2022-02-28 20:02:39 +00:00
..
.gitignore CLI: update subcommands to use return instead of exit() (#10323) 2020-10-06 16:46:10 -07:00
__init__.py Setup a python test framework 2019-09-07 07:58:41 -07:00
attrdict.py Small CLI cleanups 2019-11-12 18:41:38 -08:00
kle.txt Add cli convert subcommand, from raw KLE to JSON (#6898) 2019-11-12 20:55:41 -08:00
minimal_info.json Map PRODUCT define to keyboard_name (#14372) 2021-11-05 08:08:52 +11:00
minimal_keymap.json Add a qmk format-json command that will format JSON files (#12372) 2021-03-25 22:38:10 +11:00
test_cli_commands.py CLI: Validate JSON keymap input (#16261) 2022-02-28 20:02:39 +00:00
test_qmk_errors.py Add pep8-naming to our python linting 2019-12-01 13:40:14 -08:00
test_qmk_keymap.py Macros in JSON keymaps (#14374) 2021-11-22 11:11:35 -08:00
test_qmk_path.py Migrate python tests away from onekey (#11367) 2021-01-05 00:52:31 +00:00