"""QMK Python Unit Tests
QMK script to run unit and integration tests against our python code.
"""fromsubprocessimportDEVNULLfrommilcimportcli@cli.subcommand('QMK Python Unit Tests',hidden=Falseifcli.config.user.developerelseTrue)defpytest(cli):"""Run several linting/testing commands.
"""nose2=cli.run(['nose2','-v'],capture_output=False,stdin=DEVNULL)flake8=cli.run(['flake8','lib/python','bin/qmk'],capture_output=False,stdin=DEVNULL)returnflake8.returncode|nose2.returncode