pytest.py 410 B

12345678910111213141516
  1. """QMK Python Unit Tests
  2. QMK script to run unit and integration tests against our python code.
  3. """
  4. import subprocess
  5. from milc import cli
  6. @cli.subcommand('QMK Python Unit Tests')
  7. def pytest(cli):
  8. """Run several linting/testing commands.
  9. """
  10. flake8 = subprocess.run(['flake8', 'lib/python', 'bin/qmk'])
  11. nose2 = subprocess.run(['nose2', '-v'])
  12. return flake8.returncode | nose2.returncode