summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli/doctor.py
Commit message (Collapse)AuthorAgeFilesLines
* `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)
* `qmk doctor`: Don't run udev checks under WSL (#12231)Ryan2021-03-191-5/+11
|
* Fix submodule check for qmk setup (#11379)Stefan Schulze2021-02-161-2/+2
| | | | | | The initialization of the submodules would succeed, but the result of the subsequent check_submodules() run wasn't checked correctly. Co-authored-by: Stefan Schulze <stefan.andre.schulze@posteo.de>
* Split of the doctor codebase (#11255)Erovia2020-12-211-285/+3
| | | Co-authored-by: Ryan <fauxpark@gmail.com>
* Doctor: add check for .git folder (#11208)Ryan2020-12-201-0/+18
| | | Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* simplify qmk doctor to make room for #11208 (#11242)Zach White2020-12-181-13/+17
|
* 2020 November 28 Breaking Changes Update (#11053)James Young2020-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Branch point for 2020 November 28 Breaking Change * Remove matrix_col_t to allow MATRIX_ROWS > 32 (#10183) * Add support for soft serial to ATmega32U2 (#10204) * Change MIDI velocity implementation to allow direct control of velocity value (#9940) * Add ability to build a subset of all keyboards based on platform. * Actually use eeprom_driver_init(). * Make bootloader_jump weak for ChibiOS. (#10417) * Joystick 16-bit support (#10439) * Per-encoder resolutions (#10259) * Share button state from mousekey to pointing_device (#10179) * Add hotfix for chibios keyboards not wake (#10088) * Add advanced/efficient RGB Matrix Indicators (#8564) * Naming change. * Support for STM32 GPIOF,G,H,I,J,K (#10206) * Add milc as a dependency and remove the installed milc (#10563) * ChibiOS upgrade: early init conversions (#10214) * ChibiOS upgrade: configuration file migrator (#9952) * Haptic and solenoid cleanup (#9700) * XD75 cleanup (#10524) * OLED display update interval support (#10388) * Add definition based on currently-selected serial driver. (#10716) * New feature: Retro Tapping per key (#10622) * Allow for modification of output RGB values when using rgblight/rgb_matrix. (#10638) * Add housekeeping task callbacks so that keyboards/keymaps are capable of executing code for each main loop iteration. (#10530) * Rescale both ChibiOS and AVR backlighting. * Reduce Helix keyboard build variation (#8669) * Minor change to behavior allowing display updates to continue between task ticks (#10750) * Some GPIO manipulations in matrix.c change to atomic. (#10491) * qmk cformat (#10767) * [Keyboard] Update the Speedo firmware for v3.0 (#10657) * Maartenwut/Maarten namechange to evyd13/Evy (#10274) * [quantum] combine repeated lines of code (#10837) * Add step sequencer feature (#9703) * aeboards/ext65 refactor (#10820) * Refactor xelus/dawn60 for Rev2 later (#10584) * add DEBUG_MATRIX_SCAN_RATE_ENABLE to common_features.mk (#10824) * [Core] Added `add_oneshot_mods` & `del_oneshot_mods` (#10549) * update chibios os usb for the otg driver (#8893) * Remove HD44780 References, Part 4 (#10735) * [Keyboard] Add Valor FRL TKL (+refactor) (#10512) * Fix cursor position bug in oled_write_raw functions (#10800) * Fixup version.h writing when using SKIP_VERSION=yes (#10972) * Allow for certain code in the codebase assuming length of string. (#10974) * Add AT90USB support for serial.c (#10706) * Auto shift: support repeats and early registration (#9826) * Rename ledmatrix.h to match .c file (#7949) * Split RGB_MATRIX_ENABLE into _ENABLE and _DRIVER (#10231) * Split LED_MATRIX_ENABLE into _ENABLE and _DRIVER (#10840) * Merge point for 2020 Nov 28 Breaking Change
* CLI: Udev related fixes and improvements (#10736)Erovia2020-11-161-81/+106
|
* Fix CLI warning for Massdrop udev rule (#10691)Ryan2020-10-201-1/+1
|
* Improve ANSI support and --no-color (#10537)Zach White2020-10-171-15/+7
| | | | | | | | | | | * Improve ANSI support and --no-color * tweak when levelname gets stripped of ansi * sync with latest milc * make questions work with both milc versions * pyformat
* [CLI] Add c2json (#8817)Erovia2020-10-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <skullydazed@drpepper.org> Co-authored-by: skullY <skullydazed@gmail.com>
* CLI: update subcommands to use return instead of exit() (#10323)Ryan2020-10-061-0/+2
|
* Consolidate udev rules into a single file (#9693)Ryan2020-09-271-12/+45
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Consolidate udev rules into a single file * Update rules in doctor.py * Simplify doctor rule checking * Fix errors * Add TMK "FEED" VID to list of deprecated udev rules * A comma would be nice * Split rules back up into bootloaders * Link to docs page in "missing" case * Add Pololu VID * Be more specific about Caterina devices, and add LilyPad PID
| * Be more specific about Caterina devices, and add LilyPad PIDfauxpark2020-09-191-5/+16
| |
| * Add Pololu VIDfauxpark2020-09-191-1/+3
| |
| * Link to docs page in "missing" casefauxpark2020-09-191-1/+1
| |
| * Split rules back up into bootloadersfauxpark2020-09-191-34/+41
| |
| * A comma would be nicefauxpark2020-09-191-1/+1
| |
| * Add TMK "FEED" VID to list of deprecated udev rulesfauxpark2020-09-191-0/+1
| |
| * Fix errorsfauxpark2020-09-191-11/+11
| |
| * Simplify doctor rule checkingfauxpark2020-09-191-35/+32
| |
| * Update rules in doctor.pyfauxpark2020-09-191-9/+24
| |
* | CLI/Doctor: Print QMK_HOME (#10398)Ryan2020-09-241-0/+3
|/
* Parse version better in `qmk doctor` GCC version checks (#9324)Ryan2020-06-181-2/+13
|
* CLI: Rework submodule checking (#9162)Erovia2020-05-211-11/+4
|
* Fix submodule check (#9155)Erovia2020-05-211-1/+4
|
* CLI: Tune doctor's udev rule checking to match #8750Erovia2020-05-151-9/+41
|
* Move everything to Python 3.6 (#8835)skullydazed2020-04-181-6/+5
|
* CLI: Fix doctor error when can't run `bin/qmk --version`. (#8796)Pete Johanson2020-04-141-1/+1
|
* Doctor: Add avrdude/dfu-util/dfu-programmer version printing (#8678)Ryan2020-04-051-6/+31
| | | | | | | * Doctor: Add avrdude/dfu-util/dfu-programmer version printing * Extra newline * Iterate through version checking functions
* minor tweaksskullY2020-04-041-4/+2
|
* Fix saving output from avrdude and dfu-programmerRoss Baquir2020-04-041-3/+9
|
* Use version_arg in ESSENTIAL_BINARIES dictRoss Baquir2020-04-041-6/+4
|
* Fixes #8541 by getting version from -dumpversion then --version as fallbackRoss Baquir2020-04-041-7/+8
|
* CLI: More MSYS2 fixes (#8577)Erovia2020-03-291-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * CLI: More MSYS2 fixes Now I can fully setup and work with qmk_firmware on an MSYS2 installation without any errors or exceptions. * Apply suggestions from code review Co-Authored-By: skullydazed <skullydazed@users.noreply.github.com> * Some improvements * Remove unnecessary import * Remove slow, unused code Getting the version from GIT was slow on both Windows and Docker. Until we find a better, faster way, this is removed. * remove unused imports * Implement @vomindoraan's suggestions * refine how we pick the shell to use * Apply @fauxpark's suggestions fauxpark investigated the topic of shells in MSYS2 a bit and we come to the conclusion that the safest bet was to just use the user's shell. Anything more just opens up more edge-cases than it solves. Co-Authored-By: Ryan <fauxpark@gmail.com> * Use `platform_id` in doctor This will bring it in line with the new code. Co-authored-by: skullydazed <skullydazed@users.noreply.github.com> Co-authored-by: skullY <skullydazed@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
* Add gcc version detection to qmk doctor (#8338)skullydazed2020-03-081-3/+49
|
* Fixed OS detection such that OSX doesn't take over the world (#8248)Mikkel Jeppesen2020-02-261-1/+1
|
* Fix os detection in OSX python 3.8 (#8187)Mikkel Jeppesen2020-02-171-1/+1
| | | | | | * Fix os detection in osx python 3.8 * oops
* Qmk doctor os check to support newer msys2/w10 installations (#8031)Mikkel Jeppesen2020-01-281-4/+4
| | | | | | * Fixed OS detection on newer MSYS installations * made OS sting lower case
* Beef up how `qmk doctor` works. (#7375)skullydazed2020-01-241-63/+176
| | | | | | | | | | | | | | | | | | | | | | * Beef up how `qmk doctor` works. * improve the `git submodule status` parsing. h/t @erovia * Fix whitespace and imports * yapf * Add documentation for the new doctor functionality * Replace type_unchanged() with str() * remove unused modules * Update lib/python/qmk/cli/doctor.py Co-Authored-By: Erovia <Erovia@users.noreply.github.com> Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* yapf and styleskullY2020-01-111-11/+10
|
* Make the udev rules easier to read and manageErovia2020-01-111-10/+19
|
* Fix Pro Micro's and its bootloader's nameErovia2020-01-111-3/+3
|
* CLI: Rework ModemManager check and add udev checkErovia2020-01-111-17/+38
|
* Add pep8-naming to our python lintingskullY2019-12-011-1/+1
|
* Add flake8 to our test suite and fix all errors (#7379)skullydazed2019-11-201-2/+0
| | | | | | * Add flake8 to our test suite and fix all errors * Add some documentation
* When checking program returncodes treat both 0 and 1 as installedskullY2019-11-121-5/+4
|
* Fix detection of ModemManager (#7076)Harry Wada2019-10-201-2/+2
|
* Fix qmk doctor 'bytes-like object is required' on linuxAyman Bagabas2019-10-031-1/+1
| | | | | | | | | | | | | | | | This fixes the following issue related to encoding on linux systems. Add `universal_newlines=True` to subprocess. <class 'TypeError'> ☒ a bytes-like object is required, not 'str' Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/milc.py", line 564, in __call__ return self.__call__() File "/usr/local/lib/python3.7/site-packages/milc.py", line 569, in __call__ return self._entrypoint(self) File "$HOME/qmk_firmware/lib/python/qmk/cli/doctor.py", line 56, in doctor for line in mm_check.stdout.split('\n'): TypeError: a bytes-like object is required, not 'str'