From 6d32b25920a067cb2f562374b8521adb836b7a82 Mon Sep 17 00:00:00 2001 From: David Fischer Date: Mon, 26 Mar 2018 10:54:02 -0700 Subject: [PATCH] Fix linting errors in tests --- readthedocs/rtd_tests/utils.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/readthedocs/rtd_tests/utils.py b/readthedocs/rtd_tests/utils.py index 8ee73f2361f..c227778c180 100644 --- a/readthedocs/rtd_tests/utils.py +++ b/readthedocs/rtd_tests/utils.py @@ -59,13 +59,22 @@ def make_test_git(): gitmodules_path = pjoin(directory, '.gitmodules') with open(gitmodules_path, 'w') as fh: fh.write('''[submodule "foobar"]\n\tpath = foobar\n\turl = https://foobar.com/git\n''') - log.info(check_output(['git', 'update-index', '--add', '--cacheinfo', '160000', '233febf4846d7a0aeb95b6c28962e06e21d13688', 'foobar'], env=env)) + log.info(check_output( + [ + 'git', 'update-index', '--add', '--cacheinfo', '160000', + '233febf4846d7a0aeb95b6c28962e06e21d13688', 'foobar', + ], + env=env, + )) log.info(check_output(['git', 'add', '.'], env=env)) log.info(check_output(['git', 'commit', '-m"Add submodule"'], env=env)) # Add an invalid submodule URL in the invalidsubmodule branch log.info(check_output(['git', 'checkout', '-b', 'invalidsubmodule', 'master'], env=env)) - log.info(check_output(['git', 'submodule', 'add', '-b', 'master', './', 'invalidsubmodule'], env=env)) + log.info(check_output( + ['git', 'submodule', 'add', '-b', 'master', './', 'invalidsubmodule'], + env=env, + )) log.info(check_output(['git', 'add', '.'], env=env)) log.info(check_output(['git', 'commit', '-m"Add invalid submodule"'], env=env)) # Checkout to master branch again