Skip to content

Commit

Permalink
chore: some lint fixes (#3743)
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Matsuo authored May 12, 2020
1 parent 4ed0ec5 commit 231f8e5
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 14 deletions.
10 changes: 6 additions & 4 deletions compute/oslogin/service_account_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@
"""

# [START imports_and_variables]
import time
import argparse
import logging
import subprocess
import time
import uuid
import logging
import requests
import argparse

import googleapiclient.discovery
import requests


# Global variables
SERVICE_ACCOUNT_METADATA_URL = (
Expand Down
2 changes: 1 addition & 1 deletion compute/oslogin/service_account_ssh_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import random
import time

import googleapiclient.discovery
from google.oauth2 import service_account
import googleapiclient.discovery
from retrying import retry

from service_account_ssh import main
Expand Down
8 changes: 5 additions & 3 deletions dataflow/run_template/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,27 @@
# nox -s "py27(sample='./dataflow/run_template')"
# nox -s "py36(sample='./dataflow/run_template')"

import flask
from datetime import datetime
import json
import os
import pytest
import time
import uuid

from datetime import datetime
import flask
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
import pytest
from werkzeug.urls import url_encode

import main


PROJECT = os.environ['GCLOUD_PROJECT']
BUCKET = os.environ['CLOUD_STORAGE_BUCKET']

dataflow = build('dataflow', 'v1b3')


# Create a fake "app" for generating test request contexts.
@pytest.fixture(scope="module")
def app():
Expand Down
2 changes: 1 addition & 1 deletion dataproc/create_cluster_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

import os
import uuid
import pytest

from google.cloud import dataproc_v1 as dataproc
import pytest

import create_cluster

Expand Down
2 changes: 1 addition & 1 deletion dataproc/quickstart/quickstart_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

import os
import uuid
import pytest

from google.cloud import dataproc_v1 as dataproc
from google.cloud import storage
import pytest

import quickstart

Expand Down
3 changes: 2 additions & 1 deletion dataproc/single_job_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
import os

from google.cloud import dataproc_v1
from google.cloud import storage
from google.cloud.dataproc_v1.gapic.transports import (
workflow_template_service_grpc_transport)
from google.cloud import storage


DEFAULT_FILENAME = "pyspark_sort.py"
waiting_callback = False
Expand Down
3 changes: 2 additions & 1 deletion dataproc/submit_job_to_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@
import os

from google.cloud import dataproc_v1
from google.cloud import storage
from google.cloud.dataproc_v1.gapic.transports import (
cluster_controller_grpc_transport)
from google.cloud.dataproc_v1.gapic.transports import (
job_controller_grpc_transport)
from google.cloud import storage


DEFAULT_FILENAME = 'pyspark_sort.py'
waiting_callback = False
Expand Down
2 changes: 1 addition & 1 deletion datastore/cloud-ndb/flask_app_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@


import backoff
import pytest
from google.cloud import ndb
import pytest

import flask_app

Expand Down
2 changes: 1 addition & 1 deletion dialogflow/cloud-client/create_knowledge_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

import os
import uuid
import pytest

import dialogflow_v2beta1 as dialogflow
import pytest

import knowledge_base_management

Expand Down

0 comments on commit 231f8e5

Please sign in to comment.