diff options
Diffstat (limited to 'lib/python/qmk/cli/pytest.py')
-rw-r--r-- | lib/python/qmk/cli/pytest.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/python/qmk/cli/pytest.py b/lib/python/qmk/cli/pytest.py new file mode 100644 index 0000000000..09611d750f --- /dev/null +++ b/lib/python/qmk/cli/pytest.py @@ -0,0 +1,16 @@ +"""QMK Python Unit Tests + +QMK script to run unit and integration tests against our python code. +""" +import subprocess + +from milc import cli + + [email protected]('QMK Python Unit Tests') +def pytest(cli): + """Run several linting/testing commands. + """ + flake8 = subprocess.run(['flake8', 'lib/python', 'bin/qmk']) + nose2 = subprocess.run(['nose2', '-v']) + return flake8.returncode | nose2.returncode |