summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk
Commit message (Collapse)AuthorAgeFilesLines
* `qmk find`: Fix handling of functions in filters (#21090)Sergey Vlasov2023-05-301-4/+4
| | | | | | | | | | | | | | | | | | | | Functions in filters did not work properly except when used in the last (or only) filter. The problem was caused by the peculiarity of the `lambda` behavior in Python — any variables from the outer scope are captured only by reference, therefore any subsequent reassignment of those variables is propagated to all lambdas created earlier in the same scope. Together with the laziness of `filter()` (it returns an iterator which performs filtering on demand) this resulted in all function filters using the values of the `key` and `value` variables which correspond to the last filter in the sequence, therefore the result of filtering was wrong if some filter with a function was not the last one in the sequence. Apparently the shortest way to make a Python lambda capture some variables by value is to add arguments with default values for such variables (default values are evaluated when the lambda is created, and any subsequent reassignments in the outer scope no longer changes them). This makes filters with functions work properly even when such filters are not at the last position in the sequence.
* Fix up `qmk find` when not specifying filters. (#21059)Nick Brassel2023-05-272-1/+5
|
* Merge remote-tracking branch 'origin/master' into developQMK Bot2023-05-261-17/+19
|\
| * [Bugfix + Refactor] `qmk painter-convert-graphics` (#19994)Pablo Martínez2023-05-261-17/+19
| |
* | qmk info - Remove printing of "Keyboard Folder" (#21033)Joel Challis2023-05-241-1/+0
| |
* | Update json2c to use dump_lines (#21013)Joel Challis2023-05-222-18/+5
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-05-201-9/+8
|\|
| * `qmk generate-make-dependencies` improvements (#21001)Nick Brassel2023-05-201-9/+8
| | | | | | | | | | * Recommendations from @sigprof * Fix CI tests
* | `qmk format-json`: Expose full key path and respect `sort_keys` (#20836)Ryan2023-05-209-52/+48
| |
* | `qmk find`: usability improvements (#20440)Ryan2023-05-203-20/+50
| |
* | Fix English word list retrieval in qmk generate-autocorrect-data (#20915)Peter2023-05-201-0/+6
| |
* | CLI: Improve keymap folder resolution (#20981)Ryan2023-05-195-13/+32
| |
* | Merge remote-tracking branch 'upstream/master' into developNick Brassel2023-05-152-0/+57
|\|
| * Generate `make` dependency file during build for info.json's etc. (#20451)Nick Brassel2023-05-152-0/+57
| |
* | Fix `test_json2c_no_json()` (#20756)Ryan2023-05-062-2/+2
| |
* | Remove `FLIP_HALF` layouts and move to data driven (#20588)Ryan2023-04-301-2/+6
| |
* | Encodermap direction define. (#20454)Nick Brassel2023-04-151-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-04-091-3/+5
|\|
| * Add autocomplete to generate-compilation-database (#20387)Dasky2023-04-091-3/+5
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-04-071-1/+3
|\|
| * Avoid generating empty ENCODER_RESOLUTION (#20179)Joel Challis2023-04-071-1/+3
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-04-071-1/+1
|\|
| * Add Discord webhook at end of each CI run. (#20355)Nick Brassel2023-04-071-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-04-041-1/+2
|\|
| * Resolve keyboard names for `qmk mass-compile`. (#20335)Nick Brassel2023-04-041-1/+2
| |
* | `qmk info`: account for ISO enter when calculating layout X offset (#20325)Ryan2023-04-041-1/+6
| |
* | Append user variables to the end of make command (#20177)Albert Y2023-04-031-3/+3
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-03-301-2/+2
|\|
| * [QP] Fix up delta frame boundaries (#20296)Nick Brassel2023-03-311-2/+2
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-03-291-12/+11
|\|
| * Minify content published to API (#20285)Joel Challis2023-03-291-12/+11
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-03-291-4/+6
|\|
| * Add ability for `qmk mass-compile` to build specified targets (#20294)Nick Brassel2023-03-291-4/+6
| |
* | Reduce _validate complexity (#20274)Joel Challis2023-03-281-11/+17
| |
* | Custom keycodes in JSON (#19925)Joel Challis2023-03-274-6/+80
| |
* | Add force support to 'qmk git-submodule' (#19705)Joel Challis2023-03-271-3/+18
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-03-241-2/+6
|\|
| * Check for multiple matrix positions assigned to same key (#20039)Ryan2023-03-241-2/+6
| |
* | Strip API specific output from `qmk info` (#20234)Joel Challis2023-03-231-0/+27
| |
* | Increase verbosity of make command (#20172)Albert Y2023-03-211-0/+3
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-03-164-89/+125
|\|
| * Add `qmk find` command, reuse logic for `qmk mass-compile`. (#20139)Nick Brassel2023-03-164-89/+125
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-03-141-1/+1
|\|
| * Let's use workflows to parallelise the builds. (#20120)Nick Brassel2023-03-151-1/+1
| | | | | | | | | | | | | | * Let's use workflows to parallelise the builds. * Nofail if files aren't present. * Formatting.
* | JSON encoder: improve sorting of layout dict keys (#19974)Ryan2023-03-133-24/+52
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-03-091-0/+10
|\|
| * `qmk info`: add warning when layout is offset (#20070)Ryan2023-03-091-0/+10
| |
* | Remove some use of keymap.h (#19980)Joel Challis2023-03-031-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into developQMK Bot2023-03-011-1/+3
|\|
| * Check all keys have matrix positions when parsing C LAYOUT macros (#19781)Ryan2023-03-021-1/+3
| |