Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ed0ec5

Browse files
author
Takashi Matsuo
authored
chore: some lint fixes (GoogleCloudPlatform#3740)
1 parent 0662e10 commit 4ed0ec5

File tree

7 files changed

+31
-7
lines changed

7 files changed

+31
-7
lines changed

bigtable/quickstart_happybase/main_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from main import main
2222

23+
2324
PROJECT = os.environ['GCLOUD_PROJECT']
2425
BIGTABLE_INSTANCE = os.environ['BIGTABLE_INSTANCE']
2526
TABLE_ID_FORMAT = 'quickstart-hb-test-{}'

cloud-sql/sql-server/sqlalchemy/main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818

1919
from flask import Flask, render_template, request, Response
2020
import sqlalchemy
21-
from sqlalchemy import Table
2221
from sqlalchemy import Column
23-
from sqlalchemy import DateTime, Integer, String
22+
from sqlalchemy import DateTime
23+
from sqlalchemy import Integer
24+
from sqlalchemy import String
25+
from sqlalchemy import Table
26+
2427

2528
app = Flask(__name__)
2629

composer/workflows/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515

16-
import pytest
1716
import airflow.utils.db
17+
import pytest
1818

1919

2020
@pytest.fixture(autouse=True, scope="session")

composer/workflows/kubernetes_pod_operator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# [START composer_kubernetespodoperator]
1818
import datetime
19+
1920
from airflow import models
2021
from airflow.contrib.kubernetes import secret
2122
from airflow.contrib.operators import kubernetes_pod_operator

compute/managed-instances/demo/app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@
2020
"""
2121

2222
from ctypes import c_bool
23-
from flask import Flask, make_response, render_template
2423
from multiprocessing import Process, Value
2524
from random import random
2625
from re import sub
27-
from requests import get
2826
from socket import gethostname
2927
from time import sleep
3028

29+
from flask import Flask, make_response, render_template
30+
from requests import get
31+
32+
3133
PORT_NUMBER = 80
3234

3335
app = Flask(__name__)

compute/metadata/detect_legacy_usage.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
1+
# Copyright 2016 Google Inc. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
import json
2-
import requests
316
import time
417

18+
import requests
19+
20+
521
"""Example of using the Metadata Server to watch deprecated endpoint accesses.
622
723
For more information, see the README.md under /compute.

compute/metadata/detect_legacy_usage_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import json
2+
13
import mock
24
import requests
3-
import json
45

56
import detect_legacy_usage
67

0 commit comments

Comments
 (0)