4d33d72975
* Basic qmk lint command * check for keymap readme * change the workflow from qmk info to qmk lint * add a strict mode * parsing -> parse * document qmk lint * small info logging cleanup * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * honor --strict in more places * change the job name to lint Co-authored-by: Ryan <fauxpark@gmail.com>
31 lines
731 B
Python
31 lines
731 B
Python
"""QMK CLI Subcommands
|
|
|
|
We list each subcommand here explicitly because all the reliable ways of searching for modules are slow and delay startup.
|
|
"""
|
|
import sys
|
|
|
|
from milc import cli
|
|
|
|
from . import c2json
|
|
from . import cformat
|
|
from . import clean
|
|
from . import compile
|
|
from . import config
|
|
from . import docs
|
|
from . import doctor
|
|
from . import flash
|
|
from . import generate
|
|
from . import hello
|
|
from . import info
|
|
from . import json
|
|
from . import json2c
|
|
from . import lint
|
|
from . import list
|
|
from . import kle2json
|
|
from . import new
|
|
from . import pyformat
|
|
from . import pytest
|
|
|
|
if sys.version_info[0] != 3 or sys.version_info[1] < 6:
|
|
cli.log.error('Your Python is too old! Please upgrade to Python 3.6 or later.')
|
|
exit(127)
|