From 61972125cbbf110941da1227afed53f169bad3a6 Mon Sep 17 00:00:00 2001 From: Dan Lee Date: Fri, 23 Apr 2021 18:30:35 -0400 Subject: [PATCH 1/4] chore: add noxfile config --- .../noxfile_config.py | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py diff --git a/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py b/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py new file mode 100644 index 00000000000..67c23acf033 --- /dev/null +++ b/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py @@ -0,0 +1,38 @@ +# Copyright 2021 Google LLC +# +# 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. + +# Default TEST_CONFIG_OVERRIDE for python repos. + +# You can copy this file into your directory, then it will be inported from +# the noxfile.py. + +# The source of truth: +# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py + +TEST_CONFIG_OVERRIDE = { + # You can opt out from the test for specific Python versions. + "ignored_versions": ["2.7"], + # Old samples are opted out of enforcing Python type hints + # All new samples should feature them + "enforce_type_hints": True, + # An envvar key for determining the project id to use. Change it + # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a + # build specific Cloud project. You can also use your own string + # to use your own Cloud project. + #"gcloud_project_env": "GOOGLE_CLOUD_PROJECT", + "gcloud_project_env": "BUILD_SPECIFIC_GCLOUD_PROJECT", + # A dictionary you want to inject into your test. Don't put any + # secrets here. These values will override predefined values. + "envs": {}, +} From 1ed5c7b0f3ba9571ab818fa8b08ea162224c6779 Mon Sep 17 00:00:00 2001 From: Dan Lee Date: Fri, 23 Apr 2021 20:04:53 -0400 Subject: [PATCH 2/4] chore: fix typo on noxfile --- appengine/flexible/django_cloudsql/noxfile_config.py | 2 +- appengine/standard/django/noxfile_config.py | 2 +- appengine/standard_python3/bigquery/noxfile_config.py | 2 +- appengine/standard_python3/cloud_debugger/noxfile_config.py | 2 +- appengine/standard_python3/django/noxfile_config.py | 2 +- auth/service-to-service/noxfile_config.py | 2 +- bigquery/bqml/noxfile_config.py | 2 +- bigquery/datalab-migration/noxfile_config.py | 2 +- bigquery/pandas-gbq-migration/noxfile_config.py | 2 +- .../noxfile_config.py | 2 +- cloud-sql/mysql/client-side-encryption/noxfile_config.py | 2 +- cloud-sql/postgres/client-side-encryption/noxfile_config.py | 2 +- .../gcp-tech-blog/unit-test-dags-cloud-build/noxfile_config.py | 2 +- composer/workflows/noxfile_config.py | 2 +- data-science-onramp/ai-platform/noxfile_config.py | 2 +- data-science-onramp/data-cleaning/noxfile_config.py | 2 +- data-science-onramp/data-ingestion/noxfile_config.py | 2 +- dataflow/gpu-workers/noxfile_config.py | 2 +- functions/ocr/app/noxfile_config.py | 2 +- healthcare/api-client/v1/datasets/noxfile_config.py | 2 +- healthcare/api-client/v1/dicom/noxfile_config.py | 2 +- healthcare/api-client/v1/fhir/noxfile_config.py | 2 +- healthcare/api-client/v1/hl7v2/noxfile_config.py | 2 +- iam/api-client/noxfile_config.py | 2 +- jobs/v3/api_client/noxfile_config.py | 2 +- notebooks/noxfile_config.py | 2 +- people-and-planet-ai/image-classification/noxfile_config.py | 2 +- run/deployment-previews/noxfile_config.py | 2 +- run/django/noxfile_config.py | 2 +- run/hello-broken/noxfile_config.py | 2 +- run/helloworld/noxfile_config.py | 2 +- run/idp-sql/noxfile_config.py | 2 +- run/image-processing/noxfile_config.py | 2 +- run/logging-manual/noxfile_config.py | 2 +- run/markdown-preview/noxfile_config.py | 2 +- run/pubsub/noxfile_config.py | 2 +- run/system-package/noxfile_config.py | 2 +- storage/cloud-client/noxfile_config.py | 2 +- 38 files changed, 38 insertions(+), 38 deletions(-) diff --git a/appengine/flexible/django_cloudsql/noxfile_config.py b/appengine/flexible/django_cloudsql/noxfile_config.py index 546da53ddec..ee2031796eb 100644 --- a/appengine/flexible/django_cloudsql/noxfile_config.py +++ b/appengine/flexible/django_cloudsql/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/appengine/standard/django/noxfile_config.py b/appengine/standard/django/noxfile_config.py index 5325273d359..dc925011d4b 100644 --- a/appengine/standard/django/noxfile_config.py +++ b/appengine/standard/django/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/appengine/standard_python3/bigquery/noxfile_config.py b/appengine/standard_python3/bigquery/noxfile_config.py index 17fd0b01bf2..b75969e279f 100644 --- a/appengine/standard_python3/bigquery/noxfile_config.py +++ b/appengine/standard_python3/bigquery/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/appengine/standard_python3/cloud_debugger/noxfile_config.py b/appengine/standard_python3/cloud_debugger/noxfile_config.py index 9a7ec8ded33..f99d14e5e52 100644 --- a/appengine/standard_python3/cloud_debugger/noxfile_config.py +++ b/appengine/standard_python3/cloud_debugger/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/appengine/standard_python3/django/noxfile_config.py b/appengine/standard_python3/django/noxfile_config.py index 546da53ddec..ee2031796eb 100644 --- a/appengine/standard_python3/django/noxfile_config.py +++ b/appengine/standard_python3/django/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/auth/service-to-service/noxfile_config.py b/auth/service-to-service/noxfile_config.py index 0543aa954c5..af47c4048cd 100644 --- a/auth/service-to-service/noxfile_config.py +++ b/auth/service-to-service/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/bigquery/bqml/noxfile_config.py b/bigquery/bqml/noxfile_config.py index da81697c595..59f2be625ad 100644 --- a/bigquery/bqml/noxfile_config.py +++ b/bigquery/bqml/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/bigquery/datalab-migration/noxfile_config.py b/bigquery/datalab-migration/noxfile_config.py index da81697c595..59f2be625ad 100644 --- a/bigquery/datalab-migration/noxfile_config.py +++ b/bigquery/datalab-migration/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/bigquery/pandas-gbq-migration/noxfile_config.py b/bigquery/pandas-gbq-migration/noxfile_config.py index da81697c595..59f2be625ad 100644 --- a/bigquery/pandas-gbq-migration/noxfile_config.py +++ b/bigquery/pandas-gbq-migration/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py b/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py index 67c23acf033..ed1074338c3 100644 --- a/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py +++ b/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/cloud-sql/mysql/client-side-encryption/noxfile_config.py b/cloud-sql/mysql/client-side-encryption/noxfile_config.py index 4abe361c51f..723e6eb37de 100644 --- a/cloud-sql/mysql/client-side-encryption/noxfile_config.py +++ b/cloud-sql/mysql/client-side-encryption/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/cloud-sql/postgres/client-side-encryption/noxfile_config.py b/cloud-sql/postgres/client-side-encryption/noxfile_config.py index 4abe361c51f..723e6eb37de 100644 --- a/cloud-sql/postgres/client-side-encryption/noxfile_config.py +++ b/cloud-sql/postgres/client-side-encryption/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/noxfile_config.py b/composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/noxfile_config.py index 31a17ad81f9..92e15100427 100644 --- a/composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/noxfile_config.py +++ b/composer/blog/gcp-tech-blog/unit-test-dags-cloud-build/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/composer/workflows/noxfile_config.py b/composer/workflows/noxfile_config.py index b9fd08da2e4..bc8c408b1fb 100644 --- a/composer/workflows/noxfile_config.py +++ b/composer/workflows/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/data-science-onramp/ai-platform/noxfile_config.py b/data-science-onramp/ai-platform/noxfile_config.py index c8110382612..d9db8f8c530 100644 --- a/data-science-onramp/ai-platform/noxfile_config.py +++ b/data-science-onramp/ai-platform/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/data-science-onramp/data-cleaning/noxfile_config.py b/data-science-onramp/data-cleaning/noxfile_config.py index da81697c595..59f2be625ad 100644 --- a/data-science-onramp/data-cleaning/noxfile_config.py +++ b/data-science-onramp/data-cleaning/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/data-science-onramp/data-ingestion/noxfile_config.py b/data-science-onramp/data-ingestion/noxfile_config.py index 17fd0b01bf2..b75969e279f 100644 --- a/data-science-onramp/data-ingestion/noxfile_config.py +++ b/data-science-onramp/data-ingestion/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/dataflow/gpu-workers/noxfile_config.py b/dataflow/gpu-workers/noxfile_config.py index 3e3849e57fd..74d736256c6 100644 --- a/dataflow/gpu-workers/noxfile_config.py +++ b/dataflow/gpu-workers/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/functions/ocr/app/noxfile_config.py b/functions/ocr/app/noxfile_config.py index 6e9979617bd..baa658b7594 100644 --- a/functions/ocr/app/noxfile_config.py +++ b/functions/ocr/app/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/healthcare/api-client/v1/datasets/noxfile_config.py b/healthcare/api-client/v1/datasets/noxfile_config.py index cfd0d439150..54d23698fbe 100644 --- a/healthcare/api-client/v1/datasets/noxfile_config.py +++ b/healthcare/api-client/v1/datasets/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/healthcare/api-client/v1/dicom/noxfile_config.py b/healthcare/api-client/v1/dicom/noxfile_config.py index cfd0d439150..54d23698fbe 100644 --- a/healthcare/api-client/v1/dicom/noxfile_config.py +++ b/healthcare/api-client/v1/dicom/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/healthcare/api-client/v1/fhir/noxfile_config.py b/healthcare/api-client/v1/fhir/noxfile_config.py index cfd0d439150..54d23698fbe 100644 --- a/healthcare/api-client/v1/fhir/noxfile_config.py +++ b/healthcare/api-client/v1/fhir/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/healthcare/api-client/v1/hl7v2/noxfile_config.py b/healthcare/api-client/v1/hl7v2/noxfile_config.py index cfd0d439150..54d23698fbe 100644 --- a/healthcare/api-client/v1/hl7v2/noxfile_config.py +++ b/healthcare/api-client/v1/hl7v2/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/iam/api-client/noxfile_config.py b/iam/api-client/noxfile_config.py index 664c58309d7..4ca48f5cd34 100644 --- a/iam/api-client/noxfile_config.py +++ b/iam/api-client/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/jobs/v3/api_client/noxfile_config.py b/jobs/v3/api_client/noxfile_config.py index cfd0d439150..54d23698fbe 100644 --- a/jobs/v3/api_client/noxfile_config.py +++ b/jobs/v3/api_client/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/notebooks/noxfile_config.py b/notebooks/noxfile_config.py index 22d06bc8f68..b4ecd823ea1 100644 --- a/notebooks/noxfile_config.py +++ b/notebooks/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/people-and-planet-ai/image-classification/noxfile_config.py b/people-and-planet-ai/image-classification/noxfile_config.py index dacd1ee200a..ec4a24de36f 100644 --- a/people-and-planet-ai/image-classification/noxfile_config.py +++ b/people-and-planet-ai/image-classification/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/deployment-previews/noxfile_config.py b/run/deployment-previews/noxfile_config.py index 1a727d4c9dc..f1e940d0c0d 100644 --- a/run/deployment-previews/noxfile_config.py +++ b/run/deployment-previews/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/django/noxfile_config.py b/run/django/noxfile_config.py index 70a0e31cfb6..f6550ad54e3 100644 --- a/run/django/noxfile_config.py +++ b/run/django/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/hello-broken/noxfile_config.py b/run/hello-broken/noxfile_config.py index 3955ff5283b..1b2c2c3dd9b 100644 --- a/run/hello-broken/noxfile_config.py +++ b/run/hello-broken/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/helloworld/noxfile_config.py b/run/helloworld/noxfile_config.py index 3955ff5283b..1b2c2c3dd9b 100644 --- a/run/helloworld/noxfile_config.py +++ b/run/helloworld/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/idp-sql/noxfile_config.py b/run/idp-sql/noxfile_config.py index cdc3fced272..33fdc6443cf 100644 --- a/run/idp-sql/noxfile_config.py +++ b/run/idp-sql/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/image-processing/noxfile_config.py b/run/image-processing/noxfile_config.py index 3955ff5283b..1b2c2c3dd9b 100644 --- a/run/image-processing/noxfile_config.py +++ b/run/image-processing/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/logging-manual/noxfile_config.py b/run/logging-manual/noxfile_config.py index 3955ff5283b..1b2c2c3dd9b 100644 --- a/run/logging-manual/noxfile_config.py +++ b/run/logging-manual/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/markdown-preview/noxfile_config.py b/run/markdown-preview/noxfile_config.py index 3955ff5283b..1b2c2c3dd9b 100644 --- a/run/markdown-preview/noxfile_config.py +++ b/run/markdown-preview/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/pubsub/noxfile_config.py b/run/pubsub/noxfile_config.py index 3955ff5283b..1b2c2c3dd9b 100644 --- a/run/pubsub/noxfile_config.py +++ b/run/pubsub/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/run/system-package/noxfile_config.py b/run/system-package/noxfile_config.py index 3955ff5283b..1b2c2c3dd9b 100644 --- a/run/system-package/noxfile_config.py +++ b/run/system-package/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: diff --git a/storage/cloud-client/noxfile_config.py b/storage/cloud-client/noxfile_config.py index a0e0cc9bb00..ebd479f7e4f 100644 --- a/storage/cloud-client/noxfile_config.py +++ b/storage/cloud-client/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: From a6a848d4ec097b7bd95ad9e90300974eeebcb57e Mon Sep 17 00:00:00 2001 From: Dan Lee Date: Fri, 23 Apr 2021 20:07:14 -0400 Subject: [PATCH 3/4] Remove "chore: add noxfile config" This reverts commit 61972125cbbf110941da1227afed53f169bad3a6. --- .../noxfile_config.py | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py diff --git a/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py b/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py deleted file mode 100644 index ed1074338c3..00000000000 --- a/blog/introduction_to_data_models_in_cloud_datastore/noxfile_config.py +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 2021 Google LLC -# -# 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. - -# Default TEST_CONFIG_OVERRIDE for python repos. - -# You can copy this file into your directory, then it will be imported from -# the noxfile.py. - -# The source of truth: -# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py - -TEST_CONFIG_OVERRIDE = { - # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], - # Old samples are opted out of enforcing Python type hints - # All new samples should feature them - "enforce_type_hints": True, - # An envvar key for determining the project id to use. Change it - # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a - # build specific Cloud project. You can also use your own string - # to use your own Cloud project. - #"gcloud_project_env": "GOOGLE_CLOUD_PROJECT", - "gcloud_project_env": "BUILD_SPECIFIC_GCLOUD_PROJECT", - # A dictionary you want to inject into your test. Don't put any - # secrets here. These values will override predefined values. - "envs": {}, -} From 3e57888ba9227ae2adaabd97fe42a1560e937dc9 Mon Sep 17 00:00:00 2001 From: Dan Lee Date: Fri, 23 Apr 2021 20:09:23 -0400 Subject: [PATCH 4/4] chore: fix the base noxfile_config --- noxfile_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile_config.py b/noxfile_config.py index 32f8b4351c7..0363c556606 100644 --- a/noxfile_config.py +++ b/noxfile_config.py @@ -14,7 +14,7 @@ # Default TEST_CONFIG_OVERRIDE for python repos. -# You can copy this file into your directory, then it will be inported from +# You can copy this file into your directory, then it will be imported from # the noxfile.py. # The source of truth: