From 6b956ff0f6cc14e6e3cf1f788875d9156c6ec655 Mon Sep 17 00:00:00 2001 From: Denis Poisson Date: Thu, 9 Nov 2017 13:39:21 +0100 Subject: [PATCH 1/2] Fix Python linter error - Part 2 --- build.py | 1 + ci.py | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/build.py b/build.py index fee53de8f..18ceb93ad 100644 --- a/build.py +++ b/build.py @@ -15,6 +15,7 @@ # License for the specific language governing permissions and limitations # under the License. + def main(): pass diff --git a/ci.py b/ci.py index 36a83df89..74d11b3d2 100644 --- a/ci.py +++ b/ci.py @@ -17,23 +17,21 @@ # from __future__ import print_function - import datetime +from google.cloud import storage +from google.oauth2 import service_account import gzip import json import os import re import shutil import signal +import six import subprocess import sys import time import yaml -import six -from google.oauth2 import service_account -from google.cloud import storage - TAG_REGEX = re.compile(r'^!(\w+)(?:\s+([\w-]+))?$') @@ -772,7 +770,7 @@ def kill(signal, frame): if time_delta == 1500: print ('Tempest-tests timed out at 25 min') raise TempestTestFailedException() - if time_delta % 30 == 0: + if time_delta % 30 == 0: # noqa: S001 print ('Still running tempest-tests') time_delta += 1 time.sleep(1) From ff94fcdf9831d7232ca2f638f086868ad65b9072 Mon Sep 17 00:00:00 2001 From: Denis Poisson Date: Mon, 20 Nov 2017 10:41:41 +0100 Subject: [PATCH 2/2] Fix Python linter error - Part 2 --- ci.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci.py b/ci.py index 74d11b3d2..d57a8d8bc 100644 --- a/ci.py +++ b/ci.py @@ -17,9 +17,8 @@ # from __future__ import print_function + import datetime -from google.cloud import storage -from google.oauth2 import service_account import gzip import json import os @@ -32,6 +31,8 @@ import time import yaml +from google.cloud import storage +from google.oauth2 import service_account TAG_REGEX = re.compile(r'^!(\w+)(?:\s+([\w-]+))?$')