Skip to content

Commit c441a39

Browse files
authored
Merge pull request #2503 from dhermes/fix-2502
Adding back local dependencies to system test tox envs.
2 parents fdf6017 + f429368 commit c441a39

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

scripts/pycodestyle_on_repo.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"""
2020

2121

22+
from __future__ import print_function
23+
2224
import os
2325
import subprocess
2426
import 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

4348
if __name__ == '__main__':

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,17 @@ basepython =
220220
python2.7
221221
commands =
222222
python {toxinidir}/system_tests/attempt_system_tests.py {posargs}
223+
deps =
224+
{[testing]deps}
223225
passenv = GOOGLE_* TRAVIS* encrypted_*
224226

225227
[testenv:system-tests3]
226228
basepython =
227229
python3.4
228230
commands =
229231
python {toxinidir}/system_tests/attempt_system_tests.py {posargs}
232+
deps =
233+
{[testing]deps}
230234
passenv = {[testenv:system-tests]passenv}
231235

232236
[emulator]

0 commit comments

Comments
 (0)