Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: some lint fixes #3743

Merged
merged 1 commit into from
May 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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