Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore: some lint fixes #3744

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

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
2 changes: 1 addition & 1 deletion 2 dlp/inspect_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from __future__ import print_function

import argparse
import os
import json
import os


# [START dlp_inspect_string]
Expand Down
2 changes: 1 addition & 1 deletion 2 dlp/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

from __future__ import print_function

import sys
import argparse
import sys


def quickstart(project_id):
Expand Down
4 changes: 3 additions & 1 deletion 4 dlp/risk_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
import os
import uuid

import google.cloud.pubsub
import google.cloud.bigquery
import google.cloud.pubsub
import pytest

import risk


UNIQUE_STRING = str(uuid.uuid4()).split("-")[0]
GCLOUD_PROJECT = os.environ.get("GCLOUD_PROJECT")
TABLE_PROJECT = os.environ.get("GCLOUD_PROJECT")
Expand All @@ -35,6 +36,7 @@
BIGQUERY_TABLE_ID = "dlp_test_table" + UNIQUE_STRING
BIGQUERY_HARMFUL_TABLE_ID = "harmful" + UNIQUE_STRING


# Create new custom topic/subscription
@pytest.fixture(scope="module")
def topic_id():
Expand Down
3 changes: 2 additions & 1 deletion 3 document/cloud-client/batch_parse_form_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@


# [START documentai_batch_parse_form_beta]
import re

from google.cloud import documentai_v1beta2 as documentai
from google.cloud import storage
import re


def batch_parse_form(
Expand Down
7 changes: 5 additions & 2 deletions 7 document/cloud-client/batch_parse_form_beta_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
# See the License for the specific ladnguage governing permissions and
# limitations under the License.

import batch_parse_form_beta
import os
import pytest
import uuid

from google.cloud import storage
import pytest

import batch_parse_form_beta


BUCKET = 'document-ai-{}'.format(uuid.uuid4())
OUTPUT_PREFIX = 'TEST_OUTPUT_{}'.format(uuid.uuid4())
Expand Down
3 changes: 2 additions & 1 deletion 3 document/cloud-client/batch_parse_table_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@


# [START documentai_batch_parse_table_beta]
import re

from google.cloud import documentai_v1beta2 as documentai
from google.cloud import storage
import re


def batch_parse_table(
Expand Down
7 changes: 5 additions & 2 deletions 7 document/cloud-client/batch_parse_table_beta_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
# See the License for the specific ladnguage governing permissions and
# limitations under the License.

import batch_parse_table_beta
import os
import pytest
import uuid

from google.cloud import storage
import pytest

import batch_parse_table_beta


BUCKET = 'document-ai-{}'.format(uuid.uuid4())
OUTPUT_PREFIX = 'TEST_OUTPUT_{}'.format(uuid.uuid4())
Expand Down
2 changes: 2 additions & 0 deletions 2 document/cloud-client/parse_form_beta_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
# limitations under the License.

import os

import parse_form_beta


PROJECT_ID = os.environ['GCLOUD_PROJECT']
INPUT_URI = 'gs://cloud-samples-data/documentai/form.pdf'

Expand Down
2 changes: 2 additions & 0 deletions 2 document/cloud-client/parse_table_beta_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
# limitations under the License.

import os

import parse_table_beta


PROJECT_ID = os.environ['GCLOUD_PROJECT']
INPUT_URI = 'gs://cloud-samples-data/documentai/invoice.pdf'

Expand Down
2 changes: 2 additions & 0 deletions 2 document/cloud-client/parse_with_model_beta_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
# limitations under the License.

import os

import parse_with_model_beta


PROJECT_ID = os.environ['GCLOUD_PROJECT']
INPUT_URI = 'gs://cloud-samples-data/documentai/invoice.pdf'
AUTOML_NL_MODEL_ID = 'TCN3472481026502981088'
Expand Down
2 changes: 2 additions & 0 deletions 2 document/cloud-client/quickstart_beta_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
# limitations under the License.

import os

import quickstart_beta


PROJECT_ID = os.environ['GCLOUD_PROJECT']
INPUT_URI = 'gs://cloud-samples-data/documentai/invoice.pdf'

Expand Down
2 changes: 2 additions & 0 deletions 2 document/cloud-client/set_endpoint_beta_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
# limitations under the License.

import os

import set_endpoint_beta


PROJECT_ID = os.environ['GCLOUD_PROJECT']
INPUT_URI = 'gs://cloud-samples-data/documentai/invoice.pdf'

Expand Down
3 changes: 2 additions & 1 deletion 3 endpoints/bookstore-grpc/bookstore_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

import argparse
from concurrent import futures
import time
import os
import time

from google.protobuf import struct_pb2
import grpc
Expand All @@ -27,6 +27,7 @@
import bookstore_pb2_grpc
import status


_ONE_DAY_IN_SECONDS = 60 * 60 * 24


Expand Down
2 changes: 1 addition & 1 deletion 2 healthcare/api-client/datasets/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
import argparse
import os

from google.oauth2 import service_account
from googleapiclient import discovery
from googleapiclient.errors import HttpError
from google.oauth2 import service_account


# [START healthcare_get_client]
Expand Down
2 changes: 1 addition & 1 deletion 2 healthcare/api-client/dicom/dicom_stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
import argparse
import os

from google.oauth2 import service_account
from googleapiclient import discovery
from googleapiclient.errors import HttpError
from google.oauth2 import service_account


# [START healthcare_get_client]
Expand Down
10 changes: 6 additions & 4 deletions 10 healthcare/api-client/dicom/dicom_stores_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@
# limitations under the License.

import os
import pytest
import sys
import time

import pytest

# Add datasets for bootstrapping datasets for testing
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'datasets')) # noqa
import datasets
import dicom_stores
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'datasets')) # noqa
import datasets # noqa
import dicom_stores # noqa


cloud_region = 'us-central1'
project_id = os.environ['GOOGLE_CLOUD_PROJECT']
Expand Down
3 changes: 2 additions & 1 deletion 3 healthcare/api-client/dicom/dicomweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
import os

from google.auth.transport import requests
from googleapiclient.errors import HttpError
from google.oauth2 import service_account
from googleapiclient.errors import HttpError


_BASE_URL = 'https://healthcare.googleapis.com/v1beta1'

Expand Down
9 changes: 5 additions & 4 deletions 9 healthcare/api-client/dicom/dicomweb_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
# limitations under the License.

import os
import pytest
import sys
import time

import pytest

# Add datasets for bootstrapping datasets for testing
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'datasets')) # noqa
import datasets
import dicom_stores
import dicomweb
import datasets # noqa
import dicom_stores # noqa
import dicomweb # noqa

cloud_region = 'us-central1'
base_url = 'https://healthcare.googleapis.com/v1beta1'
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.