summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Align our subprocess usage with current best practices. (#12940)Zach White2021-05-1916-73/+58
| | | | | | | | | | | | | | | | | * Align our subprocess usage with current best practices. * remove unused import * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * fix the cpp invocation for older python * allow for unprompted installation * make sure qmk new-keyboard works on windows Co-authored-by: Ryan <fauxpark@gmail.com>
* Make sure 'cformat' only runs on core files (#12909)Erovia2021-05-181-6/+16
| | | Co-authored-by: Zach White <skullydazed@drpepper.org>
* Move the module checking and updating to lib/python (#12416)Zach White2021-05-101-24/+121
| | | | | | | | | | | | | | | | | * move the module checking and updating to lib/python * make flake8 happy * Update lib/python/qmk/cli/__init__.py Co-authored-by: Erovia <Erovia@users.noreply.github.com> * prompt the user to disable developer mode * pyformat * flake8 Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* Improve our CI tests (#11476)Zach White2021-05-105-48/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add a test and dry-run to qmk generate-api * add a dry-run to qmk pyformat * Add a --dry-run to qmk cformat * reverse the order of nose2 and flake8 tests * run CI test against cformat and pyformat * fix programming errors * tweak job name * fix argument * refine the files we select * fix stack trace in --ci * make cformat exit clean * fix c file extensions * decouple CI from pyformat * remove --ci arg * make ci happy * use the environment var instead * change output to text * fix log message * replace tabs
* Catch 'LAYOUTS = all' in lint (#12848)Joel Challis2021-05-091-0/+13
| | | Co-authored-by: Zach White <skullydazed@drpepper.org>
* fix the makefile snippet so flake8 and yapf don't fight (#12849)Zach White2021-05-091-3/+3
|
* CLI: Use BASH if SHELL variable is not set (Windows) (#12847)Erovia2021-05-091-1/+1
|
* [CI] Format code according to conventions (#12838)github-actions[bot]2021-05-101-1/+4
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* Add script to perform parallel builds. (#12497)Nick Brassel2021-05-093-1/+89
| | | Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* Align qmk info ascii logic with milc logging (#11627)Joel Challis2021-05-091-3/+3
|
* Allow MAKE environment override for 'qmk clean' (#12473)Joel Challis2021-05-092-12/+30
|
* Shim cli to new keyboard script (#12780)Joel Challis2021-05-022-0/+12
| | | | | | | * Shim cli to new keyboard script * Shim cli to new keyboard script * Add docs
* Fix unused import in recent generation code (#12781)Joel Challis2021-05-021-1/+1
|
* Allow <keyboard>.h to be optional when going data driven (#12706)Joel Challis2021-05-012-0/+61
| | | | | | | | | | | | | * Allow <keyboard>.h to be optional when going data driven * Remove stub files as no longer required * Rename function * Remove include of layouts.h for now * Take advantage of type=keyboard_folder * Take advantage of type=keyboard_folder - kb should still be mandatory
* Fix CLI incorrectly following `DEFAULT_FOLDER` (#12529)Nick Brassel2021-04-251-7/+12
| | | | | | | * Attempt to sort out incorrectly following DEFAULT_FOLDER. * Fix CI checks. * qmk pyformat
* Add support for tab completion (#12411)Zach White2021-04-1419-85/+138
| | | | | | | * Add support for tab completion * make flake8 happy * Add documentation
* `qmk chibios-confmigrate`: Make `-i` and `-r` required (#12515)Ryan2021-04-081-2/+2
|
* `qmk doctor`: Fix WSL /mnt check (#12466)Ryan2021-04-021-1/+1
|
* qmk doctor: Display macOS and Windows versions, and add WSL warning for /mnt ↵Ryan2021-04-021-4/+9
| | | | (#12441)
* Format code according to conventions (#12437)github-actions[bot]2021-03-311-1/+1
| | | Co-authored-by: QMK Bot <hello@qmk.fm>
* Allow for clang-format up to v20. (#12407)Nick Brassel2021-03-311-1/+1
|
* add utf-8 encoding to the open() call (#12388)Zach White2021-03-271-1/+1
|
* Add a `qmk format-json` command that will format JSON files (#12372)Zach White2021-03-2514-107/+309
| | | | | | | | | | | * Add a command to format json files * change to work after rebase * add test for qmk format-json * add documentation for qmk format-json * Update lib/python/qmk/cli/format/json.py
* [CI] Format code according to conventions (#12363)github-actions[bot]2021-03-241-5/+5
| | | | | | | | | | * Format code according to conventions * Update lib/python/qmk/cli/generate/api.py * Update lib/python/qmk/cli/generate/api.py Co-authored-by: QMK Bot <hello@qmk.fm> Co-authored-by: Zach White <skullydazed@gmail.com>
* Add support for qmk_configurator style aliases (#11954)Zach White2021-03-2417-106/+171
| | | | | | | | | * Add support for qmk_configurator style aliases * add the keyboard aliases to the api data * add support for a keyboard metadata file * make flake8 happy
* use layout aliases when processing info.json (#12333)Zach White2021-03-221-1/+9
|
* `qmk doctor`: Don't run udev checks under WSL (#12231)Ryan2021-03-191-5/+11
|
* Fix typo in `get_git_version()` (#12182)Ryan2021-03-101-1/+1
|
* improve detection of community layout supportZach White2021-03-091-13/+4
|
* `qmk generate-rules-mk`: add `--escape` switch for makefile logic (#12101)Ryan2021-03-041-1/+5
|
* Migrate make_dfu_header to CLI (#12061)Joel Challis2021-02-282-0/+60
| | | | | | | | | | | | | * Migrate make_dfu_header to CLI * lint fixes * Update lib/python/qmk/cli/generate/dfu_header.py Co-authored-by: Ryan <fauxpark@gmail.com> * Rename object Co-authored-by: Ryan <fauxpark@gmail.com>
* Fix generated file output while target exists (#12062)Joel Challis2021-02-286-9/+9
|
* Fix compile errors (#12048)Zach White2021-02-271-2/+3
| | | | | * fix compile errors * fix broken json files
* Fix develop (#12039)Zach White2021-02-279-30/+56
| | | | | | | | | Fixes file encoding errors on Windows, and layouts not correctly merging into info.json. * force utf8 encoding * correctly merge layouts and layout aliases * show what aliases point to
* make LAYOUT parsing more robustZach White2021-02-241-2/+4
|
* bump to python 3.7 (#11408)Zach White2021-02-131-2/+20
|
* remove deprecated qmk json-keymap (#11823)Zach White2021-02-083-22/+0
|
* Merge remote-tracking branch 'origin/master' into developQMK Bot2021-02-074-20/+16
|\
| * Allow flash/compile to accept relative json paths (#11767)Joel Challis2021-02-074-20/+16
| | | | | | | | | | | | | | | | | | | | | | * Allow flash/compile to accept relative paths * Review suggestions * Review comments * Put back exists check otherwise stdin fails * fix lint
* | Add STM32G431 and STM32G474 board definitions. (#11793)Nick Brassel2021-02-061-1/+1
| | | | | | | | | | * Add STM32G431 and STM32G474 board definitions. * Add docs.
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2021-02-012-3/+6
|\|
| * CLI: Fix json flashing (#11765)Erovia2021-02-012-3/+6
| |
* | Create a system to map between info.json and config.h/rules.mk (#11548)Zach White2021-01-316-453/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generate rules.mk from a json mapping * generate rules.mk from a json mapping * support for config.h from json maps * improve the mapping system * document the mapping system * move data/maps to data/mappings * fix flake8 errors * fixup LED_MATRIX_DRIVER * remove product and description from the vision_division keymap level * reduce the complexity of generate-rules-mk * add tests for the generate commands * fix qmk doctor when submodules are not clean
* | Adds AT90USB162 support (#11570)Dasky2021-01-292-1/+2
| | | | | | | | | | | | | | | | | | | | | | * at90usb162 support * fix missing bracket * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
* | ChibiOS conf migrations... take 11 (#11646)Nick Brassel2021-01-211-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow forcing re-migration. * ChibiOS conf upgrade for acheron/arctic acheron/arctic - 2aedbe9103fff6c37e596c33c9ed337957647368 * ChibiOS conf upgrade for acheron/austin acheron/austin - c2f4e3b7fc9f1c3d64f47d139bc58367afeca1b7 * ChibiOS conf upgrade for acheron/keebspcb acheron/keebspcb - 1ba976e409732bfa5c0487dd33e20bec06852ce4 * ChibiOS conf upgrade for acheron/lasgweloth acheron/lasgweloth - 01a2e70d0d86de0ff05d0b898a6e3b4428ee1581 * ChibiOS conf upgrade for aeboards/ext65/rev2 aeboards/ext65/rev2 - 3c9a45cafb4ed6d9672aaff4548b105193633a87 * ChibiOS conf upgrade for ai03/vega ai03/vega - 1bd0dfccb99baa69bacd2d55f2bfa72019b8bf80 * ChibiOS conf upgrade for akegata_denki/device_one akegata_denki/device_one - a013823188660f5fca37c5763f160f8646aed7a7 * ChibiOS conf upgrade for at_at/660m at_at/660m - 9999583e8bec2772046132a22818482d24e18c84 * ChibiOS conf upgrade for box75 box75 - 1126206109a942237eea96f3a9608e3c9ed55f8e * ChibiOS conf upgrade for bt66tech/bt66tech60 bt66tech/bt66tech60 - b69120638a8b2c86c008fd0592be918383d8a454 * ChibiOS conf upgrade for cannonkeys/an_c cannonkeys/an_c - c755f6caaccbe2b30d95661a3d441b836534c29f * ChibiOS conf upgrade for cannonkeys/atlas cannonkeys/atlas - 1a18c55492a834b82715516ea4cd4d3d94508743 * ChibiOS conf upgrade for cannonkeys/chimera65 cannonkeys/chimera65 - 6bf226ef353da9106c381a8ac95a9b90529327e5 * ChibiOS conf upgrade for cannonkeys/db60 cannonkeys/db60 - 07e3246f8e3adc5b6918809e6a5aa1ad064b9a09 * ChibiOS conf upgrade for cannonkeys/devastatingtkl cannonkeys/devast