summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli/cformat.py
Commit message (Collapse)AuthorAgeFilesLines
* Move all our CLI file formatters to the format dir (#13296)Zach White2021-07-201-124/+15
| | | | | | | | | * move all our file formatters to the format dir * Apply suggestions from code review Co-authored-by: Erovia <Erovia@users.noreply.github.com> Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* Align our subprocess usage with current best practices. (#12940)Zach White2021-05-191-5/+5
| | | | | | | | | | | | | | | | | * 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>
* Improve our CI tests (#11476)Zach White2021-05-101-29/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add support for tab completion (#12411)Zach White2021-04-141-1/+2
| | | | | | | * Add support for tab completion * make flake8 happy * Add documentation
* 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
|
* Fix warning logic when running 'qmk format -a' (#11177)Joel Challis2020-12-101-2/+2
|
* Initial work for consolidation of ChibiOS platform files (#8327)Nick Brassel2020-08-291-2/+2
| | | | | | | | | | | | | | | | | * Initial work for consolidation of board files and default ChibiOS configs. * Migrate F401/F411 black pills for testing. * Add early init bootloader jump flag. * Add support for I2C in order to use i2c_scanner keymap. * Add F401/F411 HSE bypass to get things booting. * Exempt "hooked" ChibiOS conf files from updater script. * Fix up ordering for bootloader_defs file check. * Match previous $(KEYBOARD_PATHS) value for Proton-C, updated for all board configs.
* [CLI] Add a subcommand for getting information about a keyboard (#8666)Zach White2020-05-261-4/+6
| | | | | You can now use `qmk info` to get information about keyboards and keymaps. Co-authored-by: Erovia <Erovia@users.noreply.github.com>
* Move everything to Python 3.6 (#8835)skullydazed2020-04-181-3/+2
|
* Don't hide for devs...Erovia2020-04-081-1/+1
|
* Rebase on master, hide some other subcommandsErovia2020-04-081-1/+1
| | | | | | | | | | | The list of hidden subcommands were approved by @skullydazed ;) Currently hidden if 'user.developer' is not True: - cformat - docs - kle2json - pyformat - pytest
* New functionality for cformat (#7893)Akaash Suresh2020-02-221-23/+42
| | | | | | | | | | | | | Fixing complexity remove lambda PR review fixes #1 Removing unneccesary string substitution Handle -a and specified files Complexity rewrite, use pathlib
* Fix cformat processing files within ignore folders (#8063)Joel Challis2020-02-021-0/+1
|
* Align cformat rules with current CI implementation (#7936)Joel Challis2020-01-211-3/+4
| | | | | | * Align cformat rules with current CI implementation * Optimise file walking
* Add support for newer versions of clang-format, if installedskullY2019-11-121-1/+10
|
* Configuration system for CLI (#6708)skullydazed2019-09-221-3/+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
* readability enhancementsskullY2019-08-311-0/+5
|
* Add support for passing files at the command lineskullY2019-08-311-9/+11
|
* CLI command to format C codeskullY2019-08-311-0/+27