Commit Graph

16 Commits (6a8cbaa16c32cf96e95a4fee28d706866f5582cb)

Author SHA1 Message Date
Zach White a5e749d8cd
Fix the path for generated keymaps (#9213) 5 years ago
Zach White 4ee623fdd5
Fix compiling json files (#9210) 5 years ago
Zach White 751316c344
[CLI] Add a subcommand for getting information about a keyboard (#8666)
You can now use `qmk info` to get information about keyboards and keymaps.

Co-authored-by: Erovia <Erovia@users.noreply.github.com>
5 years ago
skullydazed 66d94dc22a
Move everything to Python 3.6 (#8835) 5 years ago
skullY b4ef72423e Correctly handle json keymaps with ANY() 5 years ago
skullydazed c66930445f
Use pathlib everywhere we can (#7872)
* Use pathlib everywhere we can

* Update lib/python/qmk/path.py

Co-Authored-By: Erovia <Erovia@users.noreply.github.com>

* Update lib/python/qmk/path.py

Co-Authored-By: Erovia <Erovia@users.noreply.github.com>

* Improvements based on @erovia's feedback

* rework qmk compile and qmk flash to use pathlib

* style

* Remove the subcommand_name argument from find_keyboard_keymap()

Co-authored-by: Erovia <Erovia@users.noreply.github.com>
5 years ago
skullY 58101cbb73 fix list_keymaps for python 3.5 5 years ago
Erovia 512261b343 Pathlib-ify qmk.keymap.list_keymaps() 5 years ago
Erovia 8eeab1112a Fix commandline parsing and flake8 findings, rebase
Fixed commandline and config parsing. Thx @xplusplus.
Rebased on master and fixed merge conflicts.
5 years ago
Erovia 988bfffca2 Major rework, no regex/globbing, more walking
Instead of using regexes and globbing to find the rules.mk and keymap.c
files, walk the directory tree to find them.
Also, do away with the concept of revision.
5 years ago
Erovia 8ff72d9517 Fix merging community and base keymaps 5 years ago
Erovia 4445e0a459 Return only the unique keymaps 5 years ago
Erovia 26f53d38d9 Another major refactoring, add documentation
Move all useful functions to the qmk module and use the cli subcommand
as a wrapper around it.
Add both inline comments and documentation.
5 years ago
skullydazed f7bdc54c69
Add flake8 to our test suite and fix all errors (#7379)
* Add flake8 to our test suite and fix all errors

* Add some documentation
6 years ago
skullydazed 7d557a0514
Fix compiling json files. (#6340) 6 years ago
skullydazed a25dd58bc5
QMK CLI and JSON keymap support (#6176)
* Script to generate keymap.c from JSON file.

* Support for keymap.json

* Add a warning about the keymap.c getting overwritten.

* Fix keymap generating

* Install the python deps

* Flesh out more of the python environment

* Remove defunct json2keymap

* Style everything with yapf

* Polish up python support

* Hide json keymap.c into the .build dir

* Polish up qmk-compile-json

* Make milc work with positional arguments

* Fix a couple small things

* Fix some errors and make the CLI more understandable

* Make the qmk wrapper more robust

* Add basic QMK Doctor

* Clean up docstrings and flesh them out as needed

* remove unused compile_firmware() function
6 years ago