summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli/doctor.py
Commit message (Collapse)AuthorAgeFilesLines
* 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'
* Configuration system for CLI (#6708)skullydazed2019-09-221-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework how bin/qmk handles subcommands * qmk config wip * Code to show all configs * Fully working `qmk config` command * Mark some CLI arguments so they don't pollute the config file * Fleshed out config support, nicer subcommand support * sync with installable cli * pyformat * Add a test for subcommand_modules * Documentation for the `qmk config` command * split config_token on space so qmk config is more predictable * Rework how subcommands are imported * Document `arg_only` * Document deleting from CLI * Document how multiple operations work * Add cli config to the doc index * Add tests for the cli commands * Make running the tests more reliable * Be more selective about building all default keymaps * Update new-keymap to fit the new subcommand style * Add documentation about writing CLI scripts * Document new-keyboard * Update docs/cli_configuration.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/cli_development.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/cli_development.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/cli_development.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Address yan's comments. * Apply suggestions from code review suggestions from @noahfrederick Co-Authored-By: Noah Frederick <code@noahfrederick.com> * Apply suggestions from code review Co-Authored-By: Noah Frederick <code@noahfrederick.com> * Remove pip3 from the test runner
* Make the modem manager check more pythonicskullY2019-09-071-10/+26
|
* Setup a python test frameworkskullY2019-09-071-8/+22
|
* QMK CLI and JSON keymap support (#6176)skullydazed2019-07-151-0/+47
* 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