diff --git a/appengine/standard_python37/pubsub/main.py b/appengine/standard_python37/pubsub/main.py index 4fb3c5b6b59..26c2943aa85 100644 --- a/appengine/standard_python37/pubsub/main.py +++ b/appengine/standard_python37/pubsub/main.py @@ -14,11 +14,11 @@ # [START app] import base64 -from flask import current_app, Flask, render_template, request import json import logging import os +from flask import current_app, Flask, render_template, request from google.auth.transport import requests from google.cloud import pubsub_v1 from google.oauth2 import id_token @@ -39,6 +39,7 @@ TOKENS = [] CLAIMS = [] + # [START index] @app.route('/', methods=['GET', 'POST']) def index(): diff --git a/appengine/standard_python37/pubsub/main_test.py b/appengine/standard_python37/pubsub/main_test.py index e1fede07c15..2bee4877cb8 100644 --- a/appengine/standard_python37/pubsub/main_test.py +++ b/appengine/standard_python37/pubsub/main_test.py @@ -20,11 +20,11 @@ import datetime import json import os -import pytest from google.auth import crypt from google.auth import jwt from google.oauth2 import id_token +import pytest import main diff --git a/automl/beta/set_endpoint_test.py b/automl/beta/set_endpoint_test.py index 88a0164c66a..e1518fe98c1 100644 --- a/automl/beta/set_endpoint_test.py +++ b/automl/beta/set_endpoint_test.py @@ -13,8 +13,10 @@ # limitations under the License. import os + import set_endpoint + PROJECT_ID = os.environ['GCLOUD_PROJECT'] diff --git a/bigquery/bqml/data_scientist_tutorial_test.py b/bigquery/bqml/data_scientist_tutorial_test.py index eb4ef4b821b..f5fec0a9497 100644 --- a/bigquery/bqml/data_scientist_tutorial_test.py +++ b/bigquery/bqml/data_scientist_tutorial_test.py @@ -12,11 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. +import uuid + # [START bqml_data_scientist_tutorial_import_and_client] from google.cloud import bigquery # [END bqml_data_scientist_tutorial_import_and_client] import pytest -import uuid + # [START bqml_data_scientist_tutorial_import_and_client] client = bigquery.Client()