Skip to content

Commit

Permalink
chore: some lint fixes (#3740)
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Matsuo authored May 12, 2020
1 parent 0662e10 commit 4ed0ec5
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 7 deletions.
1 change: 1 addition & 0 deletions bigtable/quickstart_happybase/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from main import main


PROJECT = os.environ['GCLOUD_PROJECT']
BIGTABLE_INSTANCE = os.environ['BIGTABLE_INSTANCE']
TABLE_ID_FORMAT = 'quickstart-hb-test-{}'
Expand Down
7 changes: 5 additions & 2 deletions cloud-sql/sql-server/sqlalchemy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@

from flask import Flask, render_template, request, Response
import sqlalchemy
from sqlalchemy import Table
from sqlalchemy import Column
from sqlalchemy import DateTime, Integer, String
from sqlalchemy import DateTime
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy import Table


app = Flask(__name__)

Expand Down
2 changes: 1 addition & 1 deletion composer/workflows/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.


import pytest
import airflow.utils.db
import pytest


@pytest.fixture(autouse=True, scope="session")
Expand Down
1 change: 1 addition & 0 deletions composer/workflows/kubernetes_pod_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

# [START composer_kubernetespodoperator]
import datetime

from airflow import models
from airflow.contrib.kubernetes import secret
from airflow.contrib.operators import kubernetes_pod_operator
Expand Down
6 changes: 4 additions & 2 deletions compute/managed-instances/demo/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
"""

from ctypes import c_bool
from flask import Flask, make_response, render_template
from multiprocessing import Process, Value
from random import random
from re import sub
from requests import get
from socket import gethostname
from time import sleep

from flask import Flask, make_response, render_template
from requests import get


PORT_NUMBER = 80

app = Flask(__name__)
Expand Down
18 changes: 17 additions & 1 deletion compute/metadata/detect_legacy_usage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import json
import requests
import time

import requests


"""Example of using the Metadata Server to watch deprecated endpoint accesses.
For more information, see the README.md under /compute.
Expand Down
3 changes: 2 additions & 1 deletion compute/metadata/detect_legacy_usage_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json

import mock
import requests
import json

import detect_legacy_usage

Expand Down

0 comments on commit 4ed0ec5

Please sign in to comment.