From e01ff1b92764277b6e8fd6ef2f08a862706eea8c Mon Sep 17 00:00:00 2001 From: Karl Weinmeister Date: Thu, 20 Jul 2023 09:28:52 -0500 Subject: [PATCH 1/4] test: E2E test on endpoint versions only --- AUTHORING_GUIDE.md | 2 +- appengine/flexible/django_cloudsql/noxfile_config.py | 2 +- appengine/standard/noxfile-template.py | 2 +- .../bundled-services/blobstore/django/noxfile_config.py | 2 +- .../bundled-services/blobstore/flask/noxfile_config.py | 2 +- .../bundled-services/blobstore/wsgi/noxfile_config.py | 2 +- .../bundled-services/deferred/django/noxfile_config.py | 2 +- .../bundled-services/deferred/flask/noxfile_config.py | 2 +- .../bundled-services/deferred/wsgi/noxfile_config.py | 2 +- .../bundled-services/mail/django/noxfile_config.py | 2 +- .../bundled-services/mail/flask/noxfile_config.py | 2 +- .../bundled-services/mail/wsgi/noxfile_config.py | 2 +- appengine/standard_python3/django/noxfile_config.py | 2 +- asset/snippets/noxfile_config.py | 2 +- bigquery-connection/snippets/noxfile_config.py | 2 +- bigquery-datatransfer/snippets/noxfile_config.py | 2 +- bigquery-migration/snippets/noxfile_config.py | 2 +- bigquery/remote-function/document/noxfile_config.py | 2 +- bigquery/remote-function/translate/noxfile_config.py | 2 +- bigquery/remote-function/vision/noxfile_config.py | 2 +- .../noxfile_config.py | 2 +- cloud-media-livestream/keypublisher/noxfile_config.py | 2 +- cloud_scheduler/snippets/noxfile_config.py | 2 +- cloud_tasks/snippets/noxfile_config.py | 2 +- cloudbuild/snippets/noxfile_config.py | 2 +- compute/auth/noxfile_config.py | 2 +- compute/encryption/noxfile_config.py | 2 +- contact-center-insights/snippets/noxfile_config.py | 2 +- container/snippets/noxfile_config.py | 2 +- datalabeling/snippets/noxfile_config.py | 2 +- dataproc/snippets/noxfile_config.py | 2 +- dialogflow-cx/noxfile_config.py | 2 +- dlp/snippets/noxfile_config.py | 2 +- functions/ocr/app/noxfile_config.py | 2 +- functions/v2/ocr/noxfile_config.py | 2 +- functions/v2/storage/noxfile_config.py | 2 +- generative_ai/noxfile_config.py | 2 +- healthcare/api-client/v1/consent/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 +- iam/cloud-client/snippets/noxfile_config.py | 2 +- jobs/v3/api_client/noxfile_config.py | 2 +- kms/attestations/noxfile_config.py | 2 +- kms/snippets/noxfile_config.py | 2 +- media-translation/snippets/noxfile_config.py | 2 +- monitoring/snippets/v3/alerts-client/noxfile_config.py | 2 +- monitoring/snippets/v3/cloud-client/noxfile_config.py | 2 +- monitoring/snippets/v3/uptime-check-client/noxfile_config.py | 2 +- noxfile-template.py | 2 +- noxfile_config.py | 2 +- optimization/snippets/noxfile_config.py | 2 +- privateca/snippets/noxfile_config.py | 2 +- recaptcha_enterprise/snippets/noxfile_config.py | 2 +- retail/interactive-tutorials/events/noxfile_config.py | 2 +- retail/interactive-tutorials/search/noxfile_config.py | 2 +- secretmanager/snippets/noxfile_config.py | 2 +- securitycenter/snippets/noxfile_config.py | 2 +- servicedirectory/noxfile_config.py | 2 +- speech/noxfile_config.py | 2 +- storagetransfer/noxfile_config.py | 2 +- talent/noxfile_config.py | 2 +- translate/samples/snippets/noxfile_config.py | 2 +- video/stitcher/noxfile_config.py | 2 +- video/transcoder/noxfile_config.py | 2 +- vision/snippets/crop_hints/noxfile_config.py | 2 +- vision/snippets/document_text/noxfile_config.py | 2 +- vision/snippets/face_detection/noxfile_config.py | 2 +- vmwareengine/cloud-client/noxfile_config.py | 2 +- webrisk/snippets/noxfile_config.py | 2 +- workflows/cloud-client/noxfile_config.py | 2 +- 73 files changed, 73 insertions(+), 73 deletions(-) diff --git a/AUTHORING_GUIDE.md b/AUTHORING_GUIDE.md index a4c080fb524..8ba37672dcd 100644 --- a/AUTHORING_GUIDE.md +++ b/AUTHORING_GUIDE.md @@ -923,7 +923,7 @@ Add the new environment variables to the `envs` dictionary. ```py TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/appengine/flexible/django_cloudsql/noxfile_config.py b/appengine/flexible/django_cloudsql/noxfile_config.py index ee18d232300..1d987df0d7b 100644 --- a/appengine/flexible/django_cloudsql/noxfile_config.py +++ b/appengine/flexible/django_cloudsql/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/appengine/standard/noxfile-template.py b/appengine/standard/noxfile-template.py index aa8098f598a..454b228b85b 100644 --- a/appengine/standard/noxfile-template.py +++ b/appengine/standard/noxfile-template.py @@ -37,7 +37,7 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py index 03babc7b92a..08fc5ace9d7 100644 --- a/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py index 03babc7b92a..08fc5ace9d7 100644 --- a/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py index 03babc7b92a..08fc5ace9d7 100644 --- a/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py index 03babc7b92a..08fc5ace9d7 100644 --- a/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py index 03babc7b92a..08fc5ace9d7 100644 --- a/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py index 03babc7b92a..08fc5ace9d7 100644 --- a/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py index 03babc7b92a..08fc5ace9d7 100644 --- a/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py index 03babc7b92a..08fc5ace9d7 100644 --- a/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py index 03babc7b92a..08fc5ace9d7 100644 --- a/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/django/noxfile_config.py b/appengine/standard_python3/django/noxfile_config.py index e61a1e8d9e7..c54acb5728c 100644 --- a/appengine/standard_python3/django/noxfile_config.py +++ b/appengine/standard_python3/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/asset/snippets/noxfile_config.py b/asset/snippets/noxfile_config.py index 5c3e8031a97..b81d8567ae3 100644 --- a/asset/snippets/noxfile_config.py +++ b/asset/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/bigquery-connection/snippets/noxfile_config.py b/bigquery-connection/snippets/noxfile_config.py index 4abe361c51f..0618aef4dab 100644 --- a/bigquery-connection/snippets/noxfile_config.py +++ b/bigquery-connection/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/bigquery-datatransfer/snippets/noxfile_config.py b/bigquery-datatransfer/snippets/noxfile_config.py index 7c8439c74b3..1be8cbc6f0c 100644 --- a/bigquery-datatransfer/snippets/noxfile_config.py +++ b/bigquery-datatransfer/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/bigquery-migration/snippets/noxfile_config.py b/bigquery-migration/snippets/noxfile_config.py index c8377ecb974..74097963d32 100644 --- a/bigquery-migration/snippets/noxfile_config.py +++ b/bigquery-migration/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/bigquery/remote-function/document/noxfile_config.py b/bigquery/remote-function/document/noxfile_config.py index 1128eb713d6..a08c6868b60 100644 --- a/bigquery/remote-function/document/noxfile_config.py +++ b/bigquery/remote-function/document/noxfile_config.py @@ -17,7 +17,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/bigquery/remote-function/translate/noxfile_config.py b/bigquery/remote-function/translate/noxfile_config.py index 7ce062ee26b..d5b389c9523 100644 --- a/bigquery/remote-function/translate/noxfile_config.py +++ b/bigquery/remote-function/translate/noxfile_config.py @@ -17,7 +17,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/bigquery/remote-function/vision/noxfile_config.py b/bigquery/remote-function/vision/noxfile_config.py index 08d679a142c..d5b389c9523 100644 --- a/bigquery/remote-function/vision/noxfile_config.py +++ b/bigquery/remote-function/vision/noxfile_config.py @@ -17,7 +17,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, 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 5c3e8031a97..b81d8567ae3 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 @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/cloud-media-livestream/keypublisher/noxfile_config.py b/cloud-media-livestream/keypublisher/noxfile_config.py index 4184ccf1a07..a10bfb091ba 100644 --- a/cloud-media-livestream/keypublisher/noxfile_config.py +++ b/cloud-media-livestream/keypublisher/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/cloud_scheduler/snippets/noxfile_config.py b/cloud_scheduler/snippets/noxfile_config.py index 545546d21cb..63ae3ec693e 100644 --- a/cloud_scheduler/snippets/noxfile_config.py +++ b/cloud_scheduler/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/cloud_tasks/snippets/noxfile_config.py b/cloud_tasks/snippets/noxfile_config.py index 16f326e5c6d..ebf6eac9c6f 100644 --- a/cloud_tasks/snippets/noxfile_config.py +++ b/cloud_tasks/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/cloudbuild/snippets/noxfile_config.py b/cloudbuild/snippets/noxfile_config.py index 15cf6934cec..3c8d8a45e2c 100644 --- a/cloudbuild/snippets/noxfile_config.py +++ b/cloudbuild/snippets/noxfile_config.py @@ -23,7 +23,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # NOTE: We currently only run the test in Python 3.8. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/compute/auth/noxfile_config.py b/compute/auth/noxfile_config.py index f1fa9e5618b..63ae3ec693e 100644 --- a/compute/auth/noxfile_config.py +++ b/compute/auth/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/compute/encryption/noxfile_config.py b/compute/encryption/noxfile_config.py index f1fa9e5618b..63ae3ec693e 100644 --- a/compute/encryption/noxfile_config.py +++ b/compute/encryption/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/contact-center-insights/snippets/noxfile_config.py b/contact-center-insights/snippets/noxfile_config.py index 5361e43ddbc..f096d6c6c5e 100644 --- a/contact-center-insights/snippets/noxfile_config.py +++ b/contact-center-insights/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them # "enforce_type_hints": True, diff --git a/container/snippets/noxfile_config.py b/container/snippets/noxfile_config.py index 16f326e5c6d..ebf6eac9c6f 100644 --- a/container/snippets/noxfile_config.py +++ b/container/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/datalabeling/snippets/noxfile_config.py b/datalabeling/snippets/noxfile_config.py index 5c33914cc7a..f21072f8e4c 100644 --- a/datalabeling/snippets/noxfile_config.py +++ b/datalabeling/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/dataproc/snippets/noxfile_config.py b/dataproc/snippets/noxfile_config.py index 16f6c788593..f9f16035a5c 100644 --- a/dataproc/snippets/noxfile_config.py +++ b/dataproc/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them # "enforce_type_hints": True, diff --git a/dialogflow-cx/noxfile_config.py b/dialogflow-cx/noxfile_config.py index 6a9082c602e..3b80623892c 100644 --- a/dialogflow-cx/noxfile_config.py +++ b/dialogflow-cx/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/dlp/snippets/noxfile_config.py b/dlp/snippets/noxfile_config.py index 1c2d85d1659..c6f0ef52401 100644 --- a/dlp/snippets/noxfile_config.py +++ b/dlp/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/functions/ocr/app/noxfile_config.py b/functions/ocr/app/noxfile_config.py index 081951729a7..3e793f738f9 100644 --- a/functions/ocr/app/noxfile_config.py +++ b/functions/ocr/app/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/functions/v2/ocr/noxfile_config.py b/functions/v2/ocr/noxfile_config.py index 9208931bc61..2bf7dbe5741 100644 --- a/functions/v2/ocr/noxfile_config.py +++ b/functions/v2/ocr/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/functions/v2/storage/noxfile_config.py b/functions/v2/storage/noxfile_config.py index 545546d21cb..63ae3ec693e 100644 --- a/functions/v2/storage/noxfile_config.py +++ b/functions/v2/storage/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/generative_ai/noxfile_config.py b/generative_ai/noxfile_config.py index f1fa9e5618b..63ae3ec693e 100644 --- a/generative_ai/noxfile_config.py +++ b/generative_ai/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/healthcare/api-client/v1/consent/noxfile_config.py b/healthcare/api-client/v1/consent/noxfile_config.py index 8aa418b1651..f419166f5f5 100644 --- a/healthcare/api-client/v1/consent/noxfile_config.py +++ b/healthcare/api-client/v1/consent/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/healthcare/api-client/v1/datasets/noxfile_config.py b/healthcare/api-client/v1/datasets/noxfile_config.py index 63167a6ace1..e8f02d636e1 100644 --- a/healthcare/api-client/v1/datasets/noxfile_config.py +++ b/healthcare/api-client/v1/datasets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/healthcare/api-client/v1/dicom/noxfile_config.py b/healthcare/api-client/v1/dicom/noxfile_config.py index 63167a6ace1..e8f02d636e1 100644 --- a/healthcare/api-client/v1/dicom/noxfile_config.py +++ b/healthcare/api-client/v1/dicom/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/healthcare/api-client/v1/fhir/noxfile_config.py b/healthcare/api-client/v1/fhir/noxfile_config.py index 9160062888d..755c05f54b5 100644 --- a/healthcare/api-client/v1/fhir/noxfile_config.py +++ b/healthcare/api-client/v1/fhir/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/healthcare/api-client/v1/hl7v2/noxfile_config.py b/healthcare/api-client/v1/hl7v2/noxfile_config.py index 63167a6ace1..e8f02d636e1 100644 --- a/healthcare/api-client/v1/hl7v2/noxfile_config.py +++ b/healthcare/api-client/v1/hl7v2/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/iam/api-client/noxfile_config.py b/iam/api-client/noxfile_config.py index 93f7e460912..226433e95ba 100644 --- a/iam/api-client/noxfile_config.py +++ b/iam/api-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/iam/cloud-client/snippets/noxfile_config.py b/iam/cloud-client/snippets/noxfile_config.py index e892b338fce..50d9bba5af1 100644 --- a/iam/cloud-client/snippets/noxfile_config.py +++ b/iam/cloud-client/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/jobs/v3/api_client/noxfile_config.py b/jobs/v3/api_client/noxfile_config.py index 63167a6ace1..e8f02d636e1 100644 --- a/jobs/v3/api_client/noxfile_config.py +++ b/jobs/v3/api_client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/kms/attestations/noxfile_config.py b/kms/attestations/noxfile_config.py index 34d0d0b1bb8..d4c238dde83 100644 --- a/kms/attestations/noxfile_config.py +++ b/kms/attestations/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/kms/snippets/noxfile_config.py b/kms/snippets/noxfile_config.py index f1fa9e5618b..63ae3ec693e 100644 --- a/kms/snippets/noxfile_config.py +++ b/kms/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/media-translation/snippets/noxfile_config.py b/media-translation/snippets/noxfile_config.py index 4622f761678..d4c238dde83 100644 --- a/media-translation/snippets/noxfile_config.py +++ b/media-translation/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/monitoring/snippets/v3/alerts-client/noxfile_config.py b/monitoring/snippets/v3/alerts-client/noxfile_config.py index af21b26c4e0..312a77a2a26 100644 --- a/monitoring/snippets/v3/alerts-client/noxfile_config.py +++ b/monitoring/snippets/v3/alerts-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/monitoring/snippets/v3/cloud-client/noxfile_config.py b/monitoring/snippets/v3/cloud-client/noxfile_config.py index af21b26c4e0..312a77a2a26 100644 --- a/monitoring/snippets/v3/cloud-client/noxfile_config.py +++ b/monitoring/snippets/v3/cloud-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/monitoring/snippets/v3/uptime-check-client/noxfile_config.py b/monitoring/snippets/v3/uptime-check-client/noxfile_config.py index af21b26c4e0..312a77a2a26 100644 --- a/monitoring/snippets/v3/uptime-check-client/noxfile_config.py +++ b/monitoring/snippets/v3/uptime-check-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/noxfile-template.py b/noxfile-template.py index efbd3ba8bef..3d3e96bf7fb 100644 --- a/noxfile-template.py +++ b/noxfile-template.py @@ -40,7 +40,7 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/noxfile_config.py b/noxfile_config.py index 545546d21cb..63ae3ec693e 100644 --- a/noxfile_config.py +++ b/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/optimization/snippets/noxfile_config.py b/optimization/snippets/noxfile_config.py index 545546d21cb..63ae3ec693e 100644 --- a/optimization/snippets/noxfile_config.py +++ b/optimization/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/privateca/snippets/noxfile_config.py b/privateca/snippets/noxfile_config.py index 4a4db8c2de3..4387d96f82b 100644 --- a/privateca/snippets/noxfile_config.py +++ b/privateca/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/recaptcha_enterprise/snippets/noxfile_config.py b/recaptcha_enterprise/snippets/noxfile_config.py index d93b260e133..d2e979ba631 100644 --- a/recaptcha_enterprise/snippets/noxfile_config.py +++ b/recaptcha_enterprise/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/retail/interactive-tutorials/events/noxfile_config.py b/retail/interactive-tutorials/events/noxfile_config.py index cee552bb76b..75cebd095b7 100644 --- a/retail/interactive-tutorials/events/noxfile_config.py +++ b/retail/interactive-tutorials/events/noxfile_config.py @@ -19,7 +19,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # An envvar key for determining the project id to use. Change it # to 'PROJECT_NUMBER' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/retail/interactive-tutorials/search/noxfile_config.py b/retail/interactive-tutorials/search/noxfile_config.py index eeab78b4df1..97a6b2ba055 100644 --- a/retail/interactive-tutorials/search/noxfile_config.py +++ b/retail/interactive-tutorials/search/noxfile_config.py @@ -19,7 +19,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/secretmanager/snippets/noxfile_config.py b/secretmanager/snippets/noxfile_config.py index 94e4c7d9664..6f8428da860 100644 --- a/secretmanager/snippets/noxfile_config.py +++ b/secretmanager/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/securitycenter/snippets/noxfile_config.py b/securitycenter/snippets/noxfile_config.py index df1553879ca..40926a26b86 100644 --- a/securitycenter/snippets/noxfile_config.py +++ b/securitycenter/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/servicedirectory/noxfile_config.py b/servicedirectory/noxfile_config.py index 545546d21cb..63ae3ec693e 100644 --- a/servicedirectory/noxfile_config.py +++ b/servicedirectory/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/speech/noxfile_config.py b/speech/noxfile_config.py index 545546d21cb..63ae3ec693e 100644 --- a/speech/noxfile_config.py +++ b/speech/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/storagetransfer/noxfile_config.py b/storagetransfer/noxfile_config.py index b7efe44a1cb..8cb1dc5a785 100644 --- a/storagetransfer/noxfile_config.py +++ b/storagetransfer/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/talent/noxfile_config.py b/talent/noxfile_config.py index 7d2e0234607..6871c30b224 100644 --- a/talent/noxfile_config.py +++ b/talent/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/translate/samples/snippets/noxfile_config.py b/translate/samples/snippets/noxfile_config.py index 545546d21cb..63ae3ec693e 100644 --- a/translate/samples/snippets/noxfile_config.py +++ b/translate/samples/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/video/stitcher/noxfile_config.py b/video/stitcher/noxfile_config.py index c8377ecb974..74097963d32 100644 --- a/video/stitcher/noxfile_config.py +++ b/video/stitcher/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/video/transcoder/noxfile_config.py b/video/transcoder/noxfile_config.py index ca446bfd315..23e127abd69 100644 --- a/video/transcoder/noxfile_config.py +++ b/video/transcoder/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/vision/snippets/crop_hints/noxfile_config.py b/vision/snippets/crop_hints/noxfile_config.py index e0014e50418..f06eec2861f 100644 --- a/vision/snippets/crop_hints/noxfile_config.py +++ b/vision/snippets/crop_hints/noxfile_config.py @@ -23,5 +23,5 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Pillow 9.0.0 does not support python 3.6 - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], } diff --git a/vision/snippets/document_text/noxfile_config.py b/vision/snippets/document_text/noxfile_config.py index e0014e50418..f06eec2861f 100644 --- a/vision/snippets/document_text/noxfile_config.py +++ b/vision/snippets/document_text/noxfile_config.py @@ -23,5 +23,5 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Pillow 9.0.0 does not support python 3.6 - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], } diff --git a/vision/snippets/face_detection/noxfile_config.py b/vision/snippets/face_detection/noxfile_config.py index e0014e50418..f06eec2861f 100644 --- a/vision/snippets/face_detection/noxfile_config.py +++ b/vision/snippets/face_detection/noxfile_config.py @@ -23,5 +23,5 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Pillow 9.0.0 does not support python 3.6 - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], } diff --git a/vmwareengine/cloud-client/noxfile_config.py b/vmwareengine/cloud-client/noxfile_config.py index 3cec1e47a7d..c813e6e5643 100644 --- a/vmwareengine/cloud-client/noxfile_config.py +++ b/vmwareengine/cloud-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # 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 diff --git a/webrisk/snippets/noxfile_config.py b/webrisk/snippets/noxfile_config.py index 96fbfe15d32..6a218023000 100644 --- a/webrisk/snippets/noxfile_config.py +++ b/webrisk/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.6"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/workflows/cloud-client/noxfile_config.py b/workflows/cloud-client/noxfile_config.py index 16f326e5c6d..ebf6eac9c6f 100644 --- a/workflows/cloud-client/noxfile_config.py +++ b/workflows/cloud-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, From e7f4f83ff1ca7c1d1cbd13e19944375d7c1f424e Mon Sep 17 00:00:00 2001 From: Karl Weinmeister Date: Mon, 24 Jul 2023 07:29:37 -0500 Subject: [PATCH 2/4] test on 3.8 and 3.11 based on feedback --- AUTHORING_GUIDE.md | 2 +- appengine/flexible/django_cloudsql/noxfile_config.py | 2 +- appengine/standard/noxfile-template.py | 2 +- .../bundled-services/blobstore/django/noxfile_config.py | 2 +- .../bundled-services/blobstore/flask/noxfile_config.py | 2 +- .../bundled-services/blobstore/wsgi/noxfile_config.py | 2 +- .../bundled-services/deferred/django/noxfile_config.py | 2 +- .../bundled-services/deferred/flask/noxfile_config.py | 2 +- .../bundled-services/deferred/wsgi/noxfile_config.py | 2 +- .../bundled-services/mail/django/noxfile_config.py | 2 +- .../bundled-services/mail/flask/noxfile_config.py | 2 +- .../bundled-services/mail/wsgi/noxfile_config.py | 2 +- appengine/standard_python3/django/noxfile_config.py | 2 +- asset/snippets/noxfile_config.py | 2 +- bigquery-connection/snippets/noxfile_config.py | 2 +- bigquery-datatransfer/snippets/noxfile_config.py | 2 +- bigquery-migration/snippets/noxfile_config.py | 2 +- bigquery/remote-function/document/noxfile_config.py | 2 +- bigquery/remote-function/translate/noxfile_config.py | 2 +- bigquery/remote-function/vision/noxfile_config.py | 2 +- .../noxfile_config.py | 2 +- cloud-media-livestream/keypublisher/noxfile_config.py | 2 +- cloud_scheduler/snippets/noxfile_config.py | 2 +- cloud_tasks/snippets/noxfile_config.py | 2 +- cloudbuild/snippets/noxfile_config.py | 2 +- compute/auth/noxfile_config.py | 2 +- compute/encryption/noxfile_config.py | 2 +- contact-center-insights/snippets/noxfile_config.py | 2 +- container/snippets/noxfile_config.py | 2 +- datalabeling/snippets/noxfile_config.py | 2 +- dataproc/snippets/noxfile_config.py | 2 +- dialogflow-cx/noxfile_config.py | 2 +- dlp/snippets/noxfile_config.py | 2 +- functions/ocr/app/noxfile_config.py | 2 +- functions/v2/ocr/noxfile_config.py | 2 +- functions/v2/storage/noxfile_config.py | 2 +- generative_ai/noxfile_config.py | 2 +- healthcare/api-client/v1/consent/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 +- iam/cloud-client/snippets/noxfile_config.py | 2 +- jobs/v3/api_client/noxfile_config.py | 2 +- kms/attestations/noxfile_config.py | 2 +- kms/snippets/noxfile_config.py | 2 +- media-translation/snippets/noxfile_config.py | 2 +- monitoring/snippets/v3/alerts-client/noxfile_config.py | 2 +- monitoring/snippets/v3/cloud-client/noxfile_config.py | 2 +- monitoring/snippets/v3/uptime-check-client/noxfile_config.py | 2 +- noxfile-template.py | 2 +- noxfile_config.py | 2 +- optimization/snippets/noxfile_config.py | 2 +- privateca/snippets/noxfile_config.py | 2 +- recaptcha_enterprise/snippets/noxfile_config.py | 2 +- retail/interactive-tutorials/events/noxfile_config.py | 2 +- retail/interactive-tutorials/search/noxfile_config.py | 2 +- secretmanager/snippets/noxfile_config.py | 2 +- securitycenter/snippets/noxfile_config.py | 2 +- servicedirectory/noxfile_config.py | 2 +- speech/noxfile_config.py | 2 +- storagetransfer/noxfile_config.py | 2 +- talent/noxfile_config.py | 2 +- translate/samples/snippets/noxfile_config.py | 2 +- video/stitcher/noxfile_config.py | 2 +- video/transcoder/noxfile_config.py | 2 +- vision/snippets/crop_hints/noxfile_config.py | 2 +- vision/snippets/document_text/noxfile_config.py | 2 +- vision/snippets/face_detection/noxfile_config.py | 2 +- vmwareengine/cloud-client/noxfile_config.py | 2 +- webrisk/snippets/noxfile_config.py | 2 +- workflows/cloud-client/noxfile_config.py | 2 +- 73 files changed, 73 insertions(+), 73 deletions(-) diff --git a/AUTHORING_GUIDE.md b/AUTHORING_GUIDE.md index 8ba37672dcd..dcefddcb3b1 100644 --- a/AUTHORING_GUIDE.md +++ b/AUTHORING_GUIDE.md @@ -923,7 +923,7 @@ Add the new environment variables to the `envs` dictionary. ```py TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/appengine/flexible/django_cloudsql/noxfile_config.py b/appengine/flexible/django_cloudsql/noxfile_config.py index 1d987df0d7b..3c1d41fcb5e 100644 --- a/appengine/flexible/django_cloudsql/noxfile_config.py +++ b/appengine/flexible/django_cloudsql/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/appengine/standard/noxfile-template.py b/appengine/standard/noxfile-template.py index 454b228b85b..18975fa08ad 100644 --- a/appengine/standard/noxfile-template.py +++ b/appengine/standard/noxfile-template.py @@ -37,7 +37,7 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py index 08fc5ace9d7..a806c33c180 100644 --- a/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py index 08fc5ace9d7..a806c33c180 100644 --- a/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/flask/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py index 08fc5ace9d7..a806c33c180 100644 --- a/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/wsgi/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py index 08fc5ace9d7..a806c33c180 100644 --- a/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py index 08fc5ace9d7..a806c33c180 100644 --- a/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/flask/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py index 08fc5ace9d7..a806c33c180 100644 --- a/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/wsgi/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py index 08fc5ace9d7..a806c33c180 100644 --- a/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py index 08fc5ace9d7..a806c33c180 100644 --- a/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/flask/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py index 08fc5ace9d7..a806c33c180 100644 --- a/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/wsgi/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/django/noxfile_config.py b/appengine/standard_python3/django/noxfile_config.py index c54acb5728c..029c8f69b7d 100644 --- a/appengine/standard_python3/django/noxfile_config.py +++ b/appengine/standard_python3/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/asset/snippets/noxfile_config.py b/asset/snippets/noxfile_config.py index b81d8567ae3..138f7adb666 100644 --- a/asset/snippets/noxfile_config.py +++ b/asset/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/bigquery-connection/snippets/noxfile_config.py b/bigquery-connection/snippets/noxfile_config.py index 0618aef4dab..3d90eac75d4 100644 --- a/bigquery-connection/snippets/noxfile_config.py +++ b/bigquery-connection/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/bigquery-datatransfer/snippets/noxfile_config.py b/bigquery-datatransfer/snippets/noxfile_config.py index 1be8cbc6f0c..b68b399241c 100644 --- a/bigquery-datatransfer/snippets/noxfile_config.py +++ b/bigquery-datatransfer/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/bigquery-migration/snippets/noxfile_config.py b/bigquery-migration/snippets/noxfile_config.py index 74097963d32..667c8425422 100644 --- a/bigquery-migration/snippets/noxfile_config.py +++ b/bigquery-migration/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/bigquery/remote-function/document/noxfile_config.py b/bigquery/remote-function/document/noxfile_config.py index a08c6868b60..fd885c3a0ce 100644 --- a/bigquery/remote-function/document/noxfile_config.py +++ b/bigquery/remote-function/document/noxfile_config.py @@ -17,7 +17,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/bigquery/remote-function/translate/noxfile_config.py b/bigquery/remote-function/translate/noxfile_config.py index d5b389c9523..e2804f06cd6 100644 --- a/bigquery/remote-function/translate/noxfile_config.py +++ b/bigquery/remote-function/translate/noxfile_config.py @@ -17,7 +17,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/bigquery/remote-function/vision/noxfile_config.py b/bigquery/remote-function/vision/noxfile_config.py index d5b389c9523..e2804f06cd6 100644 --- a/bigquery/remote-function/vision/noxfile_config.py +++ b/bigquery/remote-function/vision/noxfile_config.py @@ -17,7 +17,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, 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 b81d8567ae3..138f7adb666 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 @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/cloud-media-livestream/keypublisher/noxfile_config.py b/cloud-media-livestream/keypublisher/noxfile_config.py index a10bfb091ba..1fdddfa8ba8 100644 --- a/cloud-media-livestream/keypublisher/noxfile_config.py +++ b/cloud-media-livestream/keypublisher/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/cloud_scheduler/snippets/noxfile_config.py b/cloud_scheduler/snippets/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/cloud_scheduler/snippets/noxfile_config.py +++ b/cloud_scheduler/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/cloud_tasks/snippets/noxfile_config.py b/cloud_tasks/snippets/noxfile_config.py index ebf6eac9c6f..7b5773a22a1 100644 --- a/cloud_tasks/snippets/noxfile_config.py +++ b/cloud_tasks/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/cloudbuild/snippets/noxfile_config.py b/cloudbuild/snippets/noxfile_config.py index 3c8d8a45e2c..512bb11558a 100644 --- a/cloudbuild/snippets/noxfile_config.py +++ b/cloudbuild/snippets/noxfile_config.py @@ -23,7 +23,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # NOTE: We currently only run the test in Python 3.8. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/compute/auth/noxfile_config.py b/compute/auth/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/compute/auth/noxfile_config.py +++ b/compute/auth/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/compute/encryption/noxfile_config.py b/compute/encryption/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/compute/encryption/noxfile_config.py +++ b/compute/encryption/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/contact-center-insights/snippets/noxfile_config.py b/contact-center-insights/snippets/noxfile_config.py index f096d6c6c5e..847e48e07e0 100644 --- a/contact-center-insights/snippets/noxfile_config.py +++ b/contact-center-insights/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them # "enforce_type_hints": True, diff --git a/container/snippets/noxfile_config.py b/container/snippets/noxfile_config.py index ebf6eac9c6f..7b5773a22a1 100644 --- a/container/snippets/noxfile_config.py +++ b/container/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/datalabeling/snippets/noxfile_config.py b/datalabeling/snippets/noxfile_config.py index f21072f8e4c..6a852903dbc 100644 --- a/datalabeling/snippets/noxfile_config.py +++ b/datalabeling/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/dataproc/snippets/noxfile_config.py b/dataproc/snippets/noxfile_config.py index f9f16035a5c..3acc07e0cea 100644 --- a/dataproc/snippets/noxfile_config.py +++ b/dataproc/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them # "enforce_type_hints": True, diff --git a/dialogflow-cx/noxfile_config.py b/dialogflow-cx/noxfile_config.py index 3b80623892c..2c9f30f3006 100644 --- a/dialogflow-cx/noxfile_config.py +++ b/dialogflow-cx/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/dlp/snippets/noxfile_config.py b/dlp/snippets/noxfile_config.py index c6f0ef52401..9414760fbd4 100644 --- a/dlp/snippets/noxfile_config.py +++ b/dlp/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/functions/ocr/app/noxfile_config.py b/functions/ocr/app/noxfile_config.py index 3e793f738f9..9d57c8ef469 100644 --- a/functions/ocr/app/noxfile_config.py +++ b/functions/ocr/app/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/functions/v2/ocr/noxfile_config.py b/functions/v2/ocr/noxfile_config.py index 2bf7dbe5741..32d53886ae7 100644 --- a/functions/v2/ocr/noxfile_config.py +++ b/functions/v2/ocr/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/functions/v2/storage/noxfile_config.py b/functions/v2/storage/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/functions/v2/storage/noxfile_config.py +++ b/functions/v2/storage/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/generative_ai/noxfile_config.py b/generative_ai/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/generative_ai/noxfile_config.py +++ b/generative_ai/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/healthcare/api-client/v1/consent/noxfile_config.py b/healthcare/api-client/v1/consent/noxfile_config.py index f419166f5f5..171145c063e 100644 --- a/healthcare/api-client/v1/consent/noxfile_config.py +++ b/healthcare/api-client/v1/consent/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/healthcare/api-client/v1/datasets/noxfile_config.py b/healthcare/api-client/v1/datasets/noxfile_config.py index e8f02d636e1..53922920c91 100644 --- a/healthcare/api-client/v1/datasets/noxfile_config.py +++ b/healthcare/api-client/v1/datasets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/healthcare/api-client/v1/dicom/noxfile_config.py b/healthcare/api-client/v1/dicom/noxfile_config.py index e8f02d636e1..53922920c91 100644 --- a/healthcare/api-client/v1/dicom/noxfile_config.py +++ b/healthcare/api-client/v1/dicom/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/healthcare/api-client/v1/fhir/noxfile_config.py b/healthcare/api-client/v1/fhir/noxfile_config.py index 755c05f54b5..75fd36eda5a 100644 --- a/healthcare/api-client/v1/fhir/noxfile_config.py +++ b/healthcare/api-client/v1/fhir/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/healthcare/api-client/v1/hl7v2/noxfile_config.py b/healthcare/api-client/v1/hl7v2/noxfile_config.py index e8f02d636e1..53922920c91 100644 --- a/healthcare/api-client/v1/hl7v2/noxfile_config.py +++ b/healthcare/api-client/v1/hl7v2/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/iam/api-client/noxfile_config.py b/iam/api-client/noxfile_config.py index 226433e95ba..73c903ef93a 100644 --- a/iam/api-client/noxfile_config.py +++ b/iam/api-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/iam/cloud-client/snippets/noxfile_config.py b/iam/cloud-client/snippets/noxfile_config.py index 50d9bba5af1..f02b1e922eb 100644 --- a/iam/cloud-client/snippets/noxfile_config.py +++ b/iam/cloud-client/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/jobs/v3/api_client/noxfile_config.py b/jobs/v3/api_client/noxfile_config.py index e8f02d636e1..53922920c91 100644 --- a/jobs/v3/api_client/noxfile_config.py +++ b/jobs/v3/api_client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/kms/attestations/noxfile_config.py b/kms/attestations/noxfile_config.py index d4c238dde83..4ed40f15881 100644 --- a/kms/attestations/noxfile_config.py +++ b/kms/attestations/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/kms/snippets/noxfile_config.py b/kms/snippets/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/kms/snippets/noxfile_config.py +++ b/kms/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/media-translation/snippets/noxfile_config.py b/media-translation/snippets/noxfile_config.py index d4c238dde83..4ed40f15881 100644 --- a/media-translation/snippets/noxfile_config.py +++ b/media-translation/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/monitoring/snippets/v3/alerts-client/noxfile_config.py b/monitoring/snippets/v3/alerts-client/noxfile_config.py index 312a77a2a26..52f904e83e6 100644 --- a/monitoring/snippets/v3/alerts-client/noxfile_config.py +++ b/monitoring/snippets/v3/alerts-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/monitoring/snippets/v3/cloud-client/noxfile_config.py b/monitoring/snippets/v3/cloud-client/noxfile_config.py index 312a77a2a26..52f904e83e6 100644 --- a/monitoring/snippets/v3/cloud-client/noxfile_config.py +++ b/monitoring/snippets/v3/cloud-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/monitoring/snippets/v3/uptime-check-client/noxfile_config.py b/monitoring/snippets/v3/uptime-check-client/noxfile_config.py index 312a77a2a26..52f904e83e6 100644 --- a/monitoring/snippets/v3/uptime-check-client/noxfile_config.py +++ b/monitoring/snippets/v3/uptime-check-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Declare optional test sessions you want to opt-in. Currently we # have the following optional test sessions: # 'cloud_run' # Test session for Cloud Run application. diff --git a/noxfile-template.py b/noxfile-template.py index 3d3e96bf7fb..74bdcff86f1 100644 --- a/noxfile-template.py +++ b/noxfile-template.py @@ -40,7 +40,7 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/noxfile_config.py b/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/noxfile_config.py +++ b/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/optimization/snippets/noxfile_config.py b/optimization/snippets/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/optimization/snippets/noxfile_config.py +++ b/optimization/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/privateca/snippets/noxfile_config.py b/privateca/snippets/noxfile_config.py index 4387d96f82b..56f7478e68b 100644 --- a/privateca/snippets/noxfile_config.py +++ b/privateca/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/recaptcha_enterprise/snippets/noxfile_config.py b/recaptcha_enterprise/snippets/noxfile_config.py index d2e979ba631..ff6c256f04e 100644 --- a/recaptcha_enterprise/snippets/noxfile_config.py +++ b/recaptcha_enterprise/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/retail/interactive-tutorials/events/noxfile_config.py b/retail/interactive-tutorials/events/noxfile_config.py index 75cebd095b7..e5c48e38226 100644 --- a/retail/interactive-tutorials/events/noxfile_config.py +++ b/retail/interactive-tutorials/events/noxfile_config.py @@ -19,7 +19,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # An envvar key for determining the project id to use. Change it # to 'PROJECT_NUMBER' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/retail/interactive-tutorials/search/noxfile_config.py b/retail/interactive-tutorials/search/noxfile_config.py index 97a6b2ba055..ad0349c1790 100644 --- a/retail/interactive-tutorials/search/noxfile_config.py +++ b/retail/interactive-tutorials/search/noxfile_config.py @@ -19,7 +19,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/secretmanager/snippets/noxfile_config.py b/secretmanager/snippets/noxfile_config.py index 6f8428da860..1489472efb2 100644 --- a/secretmanager/snippets/noxfile_config.py +++ b/secretmanager/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/securitycenter/snippets/noxfile_config.py b/securitycenter/snippets/noxfile_config.py index 40926a26b86..6b35c442ef3 100644 --- a/securitycenter/snippets/noxfile_config.py +++ b/securitycenter/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/servicedirectory/noxfile_config.py b/servicedirectory/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/servicedirectory/noxfile_config.py +++ b/servicedirectory/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/speech/noxfile_config.py b/speech/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/speech/noxfile_config.py +++ b/speech/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/storagetransfer/noxfile_config.py b/storagetransfer/noxfile_config.py index 8cb1dc5a785..389fa87a1b3 100644 --- a/storagetransfer/noxfile_config.py +++ b/storagetransfer/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/talent/noxfile_config.py b/talent/noxfile_config.py index 6871c30b224..57d42b75807 100644 --- a/talent/noxfile_config.py +++ b/talent/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/translate/samples/snippets/noxfile_config.py b/translate/samples/snippets/noxfile_config.py index 63ae3ec693e..68d47174afd 100644 --- a/translate/samples/snippets/noxfile_config.py +++ b/translate/samples/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/video/stitcher/noxfile_config.py b/video/stitcher/noxfile_config.py index 74097963d32..667c8425422 100644 --- a/video/stitcher/noxfile_config.py +++ b/video/stitcher/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/video/transcoder/noxfile_config.py b/video/transcoder/noxfile_config.py index 23e127abd69..22ae76f8983 100644 --- a/video/transcoder/noxfile_config.py +++ b/video/transcoder/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/vision/snippets/crop_hints/noxfile_config.py b/vision/snippets/crop_hints/noxfile_config.py index f06eec2861f..3424a93a2bd 100644 --- a/vision/snippets/crop_hints/noxfile_config.py +++ b/vision/snippets/crop_hints/noxfile_config.py @@ -23,5 +23,5 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Pillow 9.0.0 does not support python 3.6 - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], } diff --git a/vision/snippets/document_text/noxfile_config.py b/vision/snippets/document_text/noxfile_config.py index f06eec2861f..3424a93a2bd 100644 --- a/vision/snippets/document_text/noxfile_config.py +++ b/vision/snippets/document_text/noxfile_config.py @@ -23,5 +23,5 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Pillow 9.0.0 does not support python 3.6 - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], } diff --git a/vision/snippets/face_detection/noxfile_config.py b/vision/snippets/face_detection/noxfile_config.py index f06eec2861f..3424a93a2bd 100644 --- a/vision/snippets/face_detection/noxfile_config.py +++ b/vision/snippets/face_detection/noxfile_config.py @@ -23,5 +23,5 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. # Pillow 9.0.0 does not support python 3.6 - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], } diff --git a/vmwareengine/cloud-client/noxfile_config.py b/vmwareengine/cloud-client/noxfile_config.py index c813e6e5643..ef5ee6138d7 100644 --- a/vmwareengine/cloud-client/noxfile_config.py +++ b/vmwareengine/cloud-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # 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 diff --git a/webrisk/snippets/noxfile_config.py b/webrisk/snippets/noxfile_config.py index 6a218023000..b6eaec78b69 100644 --- a/webrisk/snippets/noxfile_config.py +++ b/webrisk/snippets/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, diff --git a/workflows/cloud-client/noxfile_config.py b/workflows/cloud-client/noxfile_config.py index ebf6eac9c6f..7b5773a22a1 100644 --- a/workflows/cloud-client/noxfile_config.py +++ b/workflows/cloud-client/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7", "3.8", "3.9", "3.10"], + "ignored_versions": ["2.7", "3.7", "3.9", "3.10"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": True, From ff520cd3df5ae0f107a3ff3f812be3500ce6c6ee Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 24 Jul 2023 12:31:59 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- dlp/snippets/deid_table.py | 42 +++++++++---------- dlp/snippets/deid_table_test.py | 22 ++++++---- dlp/snippets/inspect_content.py | 23 ++++------ dlp/snippets/inspect_content_test.py | 29 ++++++------- .../snippets/consume_event_notification.py | 4 +- 5 files changed, 58 insertions(+), 62 deletions(-) diff --git a/dlp/snippets/deid_table.py b/dlp/snippets/deid_table.py index d9cdc7b4649..28aeb44faeb 100644 --- a/dlp/snippets/deid_table.py +++ b/dlp/snippets/deid_table.py @@ -99,11 +99,8 @@ def deidentify_table_with_fpe( # Call the API. response = dlp.deidentify_content( - request={ - "parent": parent, - "deidentify_config": deidentify_config, - "item": item - }) + request={"parent": parent, "deidentify_config": deidentify_config, "item": item} + ) # Print out results. print(f"Table after de-identification: {response.item.table}") @@ -194,7 +191,8 @@ def reidentify_table_with_fpe( "parent": parent, "reidentify_config": reidentify_config, "item": item, - }) + } + ) # Print out results. print("Table after re-identification: {}".format(response.item.table)) @@ -212,7 +210,7 @@ def reidentify_table_with_fpe( table_fpe_parser = subparsers.add_parser( "deid_table_fpe", help="Deidentify sensitive data in a string using Format Preserving " - "Encryption (FPE).", + "Encryption (FPE).", ) table_fpe_parser.add_argument( "project", @@ -233,29 +231,29 @@ def reidentify_table_with_fpe( table_fpe_parser.add_argument( "key_name", help="The name of the Cloud KMS key used to encrypt ('wrap') the " - "AES-256 key. Example: " - "key_name = 'projects/YOUR_GCLOUD_PROJECT/locations/YOUR_LOCATION/" - "keyRings/YOUR_KEYRING_NAME/cryptoKeys/YOUR_KEY_NAME'", + "AES-256 key. Example: " + "key_name = 'projects/YOUR_GCLOUD_PROJECT/locations/YOUR_LOCATION/" + "keyRings/YOUR_KEYRING_NAME/cryptoKeys/YOUR_KEY_NAME'", ) table_fpe_parser.add_argument( "wrapped_key", help="The encrypted ('wrapped') AES-256 key to use. This key should " - "be encrypted using the Cloud KMS key specified by key_name.", + "be encrypted using the Cloud KMS key specified by key_name.", ) table_fpe_parser.add_argument( "-a", "--alphabet", default="ALPHA_NUMERIC", help="The set of characters to replace sensitive ones with. Commonly " - 'used subsets of the alphabet include "NUMERIC", "HEXADECIMAL", ' - '"UPPER_CASE_ALPHA_NUMERIC", "ALPHA_NUMERIC", ' - '"FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED"', + 'used subsets of the alphabet include "NUMERIC", "HEXADECIMAL", ' + '"UPPER_CASE_ALPHA_NUMERIC", "ALPHA_NUMERIC", ' + '"FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED"', ) reid_table_fpe_parser = subparsers.add_parser( "reid_table_fpe", help="Re-identify sensitive data in a table using Format Preserving " - "Encryption (FPE).", + "Encryption (FPE).", ) reid_table_fpe_parser.add_argument( "project", @@ -276,23 +274,23 @@ def reidentify_table_with_fpe( reid_table_fpe_parser.add_argument( "key_name", help="The name of the Cloud KMS key used to encrypt ('wrap') the " - "AES-256 key. Example: " - "key_name = 'projects/YOUR_GCLOUD_PROJECT/locations/YOUR_LOCATION/" - "keyRings/YOUR_KEYRING_NAME/cryptoKeys/YOUR_KEY_NAME'", + "AES-256 key. Example: " + "key_name = 'projects/YOUR_GCLOUD_PROJECT/locations/YOUR_LOCATION/" + "keyRings/YOUR_KEYRING_NAME/cryptoKeys/YOUR_KEY_NAME'", ) reid_table_fpe_parser.add_argument( "wrapped_key", help="The encrypted ('wrapped') AES-256 key to use. This key should " - "be encrypted using the Cloud KMS key specified by key_name.", + "be encrypted using the Cloud KMS key specified by key_name.", ) reid_table_fpe_parser.add_argument( "-a", "--alphabet", default="ALPHA_NUMERIC", help="The set of characters to replace sensitive ones with. Commonly " - 'used subsets of the alphabet include "NUMERIC", "HEXADECIMAL", ' - '"UPPER_CASE_ALPHA_NUMERIC", "ALPHA_NUMERIC", ' - '"FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED"', + 'used subsets of the alphabet include "NUMERIC", "HEXADECIMAL", ' + '"UPPER_CASE_ALPHA_NUMERIC", "ALPHA_NUMERIC", ' + '"FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED"', ) args = parser.parse_args() diff --git a/dlp/snippets/deid_table_test.py b/dlp/snippets/deid_table_test.py index 3b708eaece6..48b05de1713 100644 --- a/dlp/snippets/deid_table_test.py +++ b/dlp/snippets/deid_table_test.py @@ -31,14 +31,16 @@ ) -def test_deidentify_and_reidentify_table_with_fpe(capsys: pytest.CaptureFixture) -> None: +def test_deidentify_and_reidentify_table_with_fpe( + capsys: pytest.CaptureFixture, +) -> None: table_data = { "header": ["employee_id", "date", "compensation"], "rows": [ ["11111", "2015", "$10"], ["22222", "2016", "$20"], ["33333", "2016", "$15"], - ] + ], } deid_table.deidentify_table_with_fpe( @@ -46,7 +48,7 @@ def test_deidentify_and_reidentify_table_with_fpe(capsys: pytest.CaptureFixture) table_data["header"], table_data["rows"], ["employee_id"], - alphabet='NUMERIC', + alphabet="NUMERIC", wrapped_key=base64.b64decode(WRAPPED_KEY), key_name=KEY_NAME, ) @@ -58,21 +60,23 @@ def test_deidentify_and_reidentify_table_with_fpe(capsys: pytest.CaptureFixture) response = out.split(":")[1:] deid_col_id = response.index(' "employee_id"\n}\nheaders {\n name') - total_columns = len(table_data['header']) - total_rows = len(table_data['rows'][0]) + total_columns = len(table_data["header"]) + total_rows = len(table_data["rows"][0]) - deid_emp_ids = [response[i].split("\n")[0][2:-1] for i in - range(deid_col_id + total_columns, len(response), total_columns)] + deid_emp_ids = [ + response[i].split("\n")[0][2:-1] + for i in range(deid_col_id + total_columns, len(response), total_columns) + ] for i in range(total_rows): - table_data['rows'][i][deid_col_id - 1] = deid_emp_ids[i] + table_data["rows"][i][deid_col_id - 1] = deid_emp_ids[i] deid_table.reidentify_table_with_fpe( GCLOUD_PROJECT, table_data["header"], table_data["rows"], ["employee_id"], - alphabet='NUMERIC', + alphabet="NUMERIC", wrapped_key=base64.b64decode(WRAPPED_KEY), key_name=KEY_NAME, ) diff --git a/dlp/snippets/inspect_content.py b/dlp/snippets/inspect_content.py index ecaec6ff106..e5a362b8896 100644 --- a/dlp/snippets/inspect_content.py +++ b/dlp/snippets/inspect_content.py @@ -1590,21 +1590,13 @@ def inspect_gcs_send_to_scc( inspect_config = { "info_types": info_types, "min_likelihood": google.cloud.dlp_v2.Likelihood.UNLIKELY, - "limits": { - "max_findings_per_request": max_findings - }, + "limits": {"max_findings_per_request": max_findings}, "include_quote": True, } # Construct a cloud_storage_options dictionary with the bucket's URL. url = f"gs://{bucket}" - storage_config = { - "cloud_storage_options": { - "file_set": { - "url": url - } - } - } + storage_config = {"cloud_storage_options": {"file_set": {"url": url}}} # Tell the API where to send a notification when the job is complete. actions = [{"publish_summary_to_cscc": {}}] @@ -1639,7 +1631,7 @@ def inspect_gcs_send_to_scc( if job.state == google.cloud.dlp_v2.DlpJob.JobState.DONE: break elif job.state == google.cloud.dlp_v2.DlpJob.JobState.FAILED: - print('Job Failed, Please check the configuration.') + print("Job Failed, Please check the configuration.") return # Sleep for a short duration before checking the job status again. @@ -1657,6 +1649,7 @@ def inspect_gcs_send_to_scc( else: print("No findings.") + # [END dlp_inspect_gcs_send_to_scc] @@ -1675,7 +1668,6 @@ def inspect_datastore_send_to_scc( namespace_id: str = None, max_findings: int = 100, ) -> None: - """ Uses the Data Loss Prevention API to inspect Datastore data and send the results to Google Security Command Center. @@ -1711,7 +1703,7 @@ def inspect_datastore_send_to_scc( "project_id": datastore_project, "namespace_id": namespace_id, }, - "kind": {"name": kind} + "kind": {"name": kind}, } } @@ -1748,7 +1740,7 @@ def inspect_datastore_send_to_scc( if job.state == google.cloud.dlp_v2.DlpJob.JobState.DONE: break elif job.state == google.cloud.dlp_v2.DlpJob.JobState.FAILED: - print('Job Failed, Please check the configuration.') + print("Job Failed, Please check the configuration.") return # Sleep for a short duration before checking the job status again. @@ -1780,7 +1772,6 @@ def inspect_bigquery_send_to_scc( info_types: List[str], max_findings: int = 100, ) -> None: - """ Uses the Data Loss Prevention API to inspect public bigquery dataset and send the results to Google Security Command Center. @@ -1849,7 +1840,7 @@ def inspect_bigquery_send_to_scc( if job.state == google.cloud.dlp_v2.DlpJob.JobState.DONE: break elif job.state == google.cloud.dlp_v2.DlpJob.JobState.FAILED: - print('Job Failed, Please check the configuration.') + print("Job Failed, Please check the configuration.") return # Sleep for a short duration before checking the job status again. diff --git a/dlp/snippets/inspect_content_test.py b/dlp/snippets/inspect_content_test.py index dc4ce7101bf..e70a106d7b6 100644 --- a/dlp/snippets/inspect_content_test.py +++ b/dlp/snippets/inspect_content_test.py @@ -697,18 +697,18 @@ def test_inspect_data_to_hybrid_job_trigger( @mock.patch("google.cloud.dlp_v2.DlpServiceClient") def test_inspect_gcs_send_to_scc( - dlp_client: MagicMock, - capsys: pytest.CaptureFixture + dlp_client: MagicMock, capsys: pytest.CaptureFixture ) -> None: - # Configure the mock DLP client and its behavior. mock_dlp_instance = dlp_client.return_value # Configure the mock CreateDlpJob DLP method and its behavior. - mock_dlp_instance.create_dlp_job.return_value.name = f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job' + mock_dlp_instance.create_dlp_job.return_value.name = ( + f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job" + ) # Configure the mock GetDlpJob DLP method and its behavior. mock_job = mock_dlp_instance.get_dlp_job.return_value - mock_job.name = f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job' + mock_job.name = f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job" mock_job.state = google.cloud.dlp_v2.DlpJob.JobState.DONE file = open(os.path.join(RESOURCE_DIRECTORY, "test.txt"), "r") @@ -742,18 +742,18 @@ def test_inspect_gcs_send_to_scc( @mock.patch("google.cloud.dlp_v2.DlpServiceClient") def test_inspect_bigquery_send_to_scc( - dlp_client: MagicMock, - capsys: pytest.CaptureFixture + dlp_client: MagicMock, capsys: pytest.CaptureFixture ) -> None: - # Configure the mock DLP client and its behavior. mock_dlp_instance = dlp_client.return_value # Configure the mock CreateDlpJob DLP method and its behavior. - mock_dlp_instance.create_dlp_job.return_value.name = f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job' + mock_dlp_instance.create_dlp_job.return_value.name = ( + f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job" + ) # Configure the mock GetDlpJob DLP method and its behavior. mock_job = mock_dlp_instance.get_dlp_job.return_value - mock_job.name = f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job' + mock_job.name = f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job" mock_job.state = google.cloud.dlp_v2.DlpJob.JobState.DONE @@ -779,17 +779,18 @@ def test_inspect_bigquery_send_to_scc( @mock.patch("google.cloud.dlp_v2.DlpServiceClient") def test_inspect_datastore_send_to_scc( - dlp_client: MagicMock, - capsys: pytest.CaptureFixture + dlp_client: MagicMock, capsys: pytest.CaptureFixture ) -> None: # Configure the mock DLP client and its behavior. mock_dlp_instance = dlp_client.return_value # Configure the mock CreateDlpJob DLP method and its behavior. - mock_dlp_instance.create_dlp_job.return_value.name = f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job' + mock_dlp_instance.create_dlp_job.return_value.name = ( + f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job" + ) # Configure the mock GetDlpJob DLP method and its behavior. mock_job = mock_dlp_instance.get_dlp_job.return_value - mock_job.name = f'projects/{GCLOUD_PROJECT}/dlpJobs/test_job' + mock_job.name = f"projects/{GCLOUD_PROJECT}/dlpJobs/test_job" mock_job.state = google.cloud.dlp_v2.DlpJob.JobState.DONE mock_job.inspect_details.result.info_type_stats.info_type.name = "EMAIL_ADDRESS" diff --git a/secretmanager/snippets/consume_event_notification.py b/secretmanager/snippets/consume_event_notification.py index 78741ee7a77..2fc9c8a851d 100644 --- a/secretmanager/snippets/consume_event_notification.py +++ b/secretmanager/snippets/consume_event_notification.py @@ -31,7 +31,9 @@ def consume_event_notification(event: dict, unused_context: None) -> str: event_type = event["attributes"]["eventType"] secret_id = event["attributes"]["secretId"] secret_metadata = base64.b64decode(event["data"]).decode("utf-8") - event_notification = f"Received {event_type} for {secret_id}. New metadata: {secret_metadata}" + event_notification = ( + f"Received {event_type} for {secret_id}. New metadata: {secret_metadata}" + ) print(event_notification) return event_notification From 2384a5862849c81cce87b04c92e467ea32dc7426 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 2 Aug 2023 14:44:44 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- dlp/snippets/deid.py | 34 +++++++++++++++++++++++---------- dlp/snippets/deid_test.py | 5 ++--- dlp/snippets/inspect_content.py | 4 +--- dlp/snippets/triggers.py | 12 +++++++----- 4 files changed, 34 insertions(+), 21 deletions(-) diff --git a/dlp/snippets/deid.py b/dlp/snippets/deid.py index 291bb7d43d6..b0a639746a9 100644 --- a/dlp/snippets/deid.py +++ b/dlp/snippets/deid.py @@ -1358,7 +1358,7 @@ def deidentify_table_bucketing( def deidentify_table_primitive_bucketing( project: str, ) -> None: - """ Uses the Data Loss Prevention API to de-identify sensitive data in + """Uses the Data Loss Prevention API to de-identify sensitive data in a table by replacing them with generalized bucket labels. Args: project: The Google Cloud project id to use as a parent resource. @@ -1395,9 +1395,21 @@ def deidentify_table_primitive_bucketing( # Construct generalised bucket configuration. buckets_config = [ - {"min_": {"integer_value": 0}, "max_": {"integer_value": 25}, "replacement_value": {"string_value": "Low"}}, - {"min_": {"integer_value": 25}, "max_": {"integer_value": 75}, "replacement_value": {"string_value": "Medium"}}, - {"min_": {"integer_value": 75}, "max_": {"integer_value": 100}, "replacement_value": {"string_value": "High"}}, + { + "min_": {"integer_value": 0}, + "max_": {"integer_value": 25}, + "replacement_value": {"string_value": "Low"}, + }, + { + "min_": {"integer_value": 25}, + "max_": {"integer_value": 75}, + "replacement_value": {"string_value": "Medium"}, + }, + { + "min_": {"integer_value": 75}, + "max_": {"integer_value": 100}, + "replacement_value": {"string_value": "High"}, + }, ] # Construct de-identify configuration that groups values in a table field and replace those with bucket labels. @@ -1408,18 +1420,20 @@ def deidentify_table_primitive_bucketing( "fields": [{"name": "happiness_score"}], "primitive_transformation": { "bucketing_config": {"buckets": buckets_config} - } + }, } ] } } # Call the API to deidentify table data through primitive bucketing. - response = dlp.deidentify_content(request={ - "parent": parent, - "deidentify_config": deidentify_config, - "item": item, - }) + response = dlp.deidentify_content( + request={ + "parent": parent, + "deidentify_config": deidentify_config, + "item": item, + } + ) # Print the results. print("Table after de-identification: {}".format(response.item.table)) diff --git a/dlp/snippets/deid_test.py b/dlp/snippets/deid_test.py index 5a0d5a38023..527a88df948 100644 --- a/dlp/snippets/deid_test.py +++ b/dlp/snippets/deid_test.py @@ -400,14 +400,13 @@ def test_deidentify_table_bucketing(capsys: pytest.CaptureFixture) -> None: def test_deidentify_table_primitive_bucketing(capsys: pytest.CaptureFixture) -> None: - deid.deidentify_table_primitive_bucketing( GCLOUD_PROJECT, ) out, _ = capsys.readouterr() - assert "string_value: \"High\"" in out - assert "string_value: \"Low\"" in out + assert 'string_value: "High"' in out + assert 'string_value: "Low"' in out def test_deidentify_table_condition_replace_with_info_types( diff --git a/dlp/snippets/inspect_content.py b/dlp/snippets/inspect_content.py index 5c5d5ee043c..e98e55283dc 100644 --- a/dlp/snippets/inspect_content.py +++ b/dlp/snippets/inspect_content.py @@ -201,9 +201,7 @@ def inspect_string_augment_infotype( custom_info_types = [ { "info_type": {"name": info_type}, - "dictionary": { - "word_list": {"words": word_list} - }, + "dictionary": {"word_list": {"words": word_list}}, } ] diff --git a/dlp/snippets/triggers.py b/dlp/snippets/triggers.py index 69d03b3d4cf..1c2157fac58 100644 --- a/dlp/snippets/triggers.py +++ b/dlp/snippets/triggers.py @@ -165,7 +165,7 @@ def update_trigger( info_types: List[str], trigger_id: str, ) -> None: - """ Uses the Data Loss Prevention API to update an existing job trigger. + """Uses the Data Loss Prevention API to update an existing job trigger. Args: project: The Google Cloud project id to use as a parent resource info_types: A list of strings representing infoTypes to update trigger with. @@ -202,8 +202,10 @@ def update_trigger( "name": trigger_name, "job_trigger": job_trigger, "update_mask": { - "paths": ["inspect_job.inspect_config.info_types", - "inspect_job.inspect_config.min_likelihood"] + "paths": [ + "inspect_job.inspect_config.info_types", + "inspect_job.inspect_config.min_likelihood", + ] }, } ) @@ -340,8 +342,8 @@ def delete_trigger(project: str, trigger_id: str) -> None: "--info_types", nargs="+", help="Strings representing info types to look for. A full list of " - "info categories and types is available from the API. Examples " - 'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ', + "info categories and types is available from the API. Examples " + 'include "FIRST_NAME", "LAST_NAME", "EMAIL_ADDRESS". ', ) parser_delete = subparsers.add_parser("delete", help="Delete a trigger.")