File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919"""
2020
2121
22+ from __future__ import print_function
23+
2224import os
2325import subprocess
2426import sys
@@ -35,9 +37,12 @@ def main():
3537 python_files = [
3638 candidate for candidate in candidates if candidate .endswith ('.py' )]
3739
38- pycodestyle_command = ['pycodestyle' ] + python_files
39- status_code = subprocess .call (pycodestyle_command )
40- sys .exit (status_code )
40+ if not python_files :
41+ print ('No Python files to lint, exiting.' )
42+ else :
43+ pycodestyle_command = ['pycodestyle' ] + python_files
44+ status_code = subprocess .call (pycodestyle_command )
45+ sys .exit (status_code )
4146
4247
4348if __name__ == '__main__' :
Original file line number Diff line number Diff line change @@ -220,13 +220,17 @@ basepython =
220220 python2.7
221221commands =
222222 python {toxinidir}/system_tests/attempt_system_tests.py {posargs}
223+ deps =
224+ {[testing]deps}
223225passenv = GOOGLE_* TRAVIS* encrypted_*
224226
225227[testenv:system-tests3]
226228basepython =
227229 python3.4
228230commands =
229231 python {toxinidir}/system_tests/attempt_system_tests.py {posargs}
232+ deps =
233+ {[testing]deps}
230234passenv = {[testenv:system-tests]passenv}
231235
232236[emulator]
You can’t perform that action at this time.
0 commit comments