Skip to content

Commit fb3cd6b

Browse files
yoshi-automationleahecole
authored andcommitted
feat: Introduce tracks and thumbnails fields for FaceDetectionAnnotations (#90)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/2e07b4d7-dfb2-4ae0-bdea-6cc5c2642547/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 346664095 Source-Link: googleapis/googleapis@468a94a PiperOrigin-RevId: 346138329 Source-Link: googleapis/googleapis@674ec0e Source-Link: googleapis/synthtool@7fcc405
1 parent 9398ffe commit fb3cd6b

File tree

6 files changed

+68
-399
lines changed

6 files changed

+68
-399
lines changed

videointelligence/samples/analyze/README.rst

Lines changed: 0 additions & 195 deletions
This file was deleted.

videointelligence/samples/analyze/noxfile.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,28 @@
3737

3838
TEST_CONFIG = {
3939
# You can opt out from the test for specific Python versions.
40-
"ignored_versions": ["2.7"],
40+
'ignored_versions': ["2.7"],
41+
4142
# Old samples are opted out of enforcing Python type hints
4243
# All new samples should feature them
43-
"enforce_type_hints": False,
44+
'enforce_type_hints': False,
45+
4446
# An envvar key for determining the project id to use. Change it
4547
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
4648
# build specific Cloud project. You can also use your own string
4749
# to use your own Cloud project.
48-
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
50+
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
4951
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
52+
5053
# A dictionary you want to inject into your test. Don't put any
5154
# secrets here. These values will override predefined values.
52-
"envs": {},
55+
'envs': {},
5356
}
5457

5558

5659
try:
5760
# Ensure we can import noxfile_config in the project's directory.
58-
sys.path.append(".")
61+
sys.path.append('.')
5962
from noxfile_config import TEST_CONFIG_OVERRIDE
6063
except ImportError as e:
6164
print("No user noxfile_config found: detail: {}".format(e))
@@ -70,12 +73,12 @@ def get_pytest_env_vars():
7073
ret = {}
7174

7275
# Override the GCLOUD_PROJECT and the alias.
73-
env_key = TEST_CONFIG["gcloud_project_env"]
76+
env_key = TEST_CONFIG['gcloud_project_env']
7477
# This should error out if not set.
75-
ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key]
78+
ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key]
7679

7780
# Apply user supplied envs.
78-
ret.update(TEST_CONFIG["envs"])
81+
ret.update(TEST_CONFIG['envs'])
7982
return ret
8083

8184

@@ -84,7 +87,7 @@ def get_pytest_env_vars():
8487
ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8"]
8588

8689
# Any default versions that should be ignored.
87-
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]
90+
IGNORED_VERSIONS = TEST_CONFIG['ignored_versions']
8891

8992
TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS])
9093

@@ -133,7 +136,7 @@ def _determine_local_import_names(start_dir):
133136

134137
@nox.session
135138
def lint(session):
136-
if not TEST_CONFIG["enforce_type_hints"]:
139+
if not TEST_CONFIG['enforce_type_hints']:
137140
session.install("flake8", "flake8-import-order")
138141
else:
139142
session.install("flake8", "flake8-import-order", "flake8-annotations")
@@ -142,11 +145,9 @@ def lint(session):
142145
args = FLAKE8_COMMON_ARGS + [
143146
"--application-import-names",
144147
",".join(local_names),
145-
".",
148+
"."
146149
]
147150
session.run("flake8", *args)
148-
149-
150151
#
151152
# Black
152153
#
@@ -159,7 +160,6 @@ def blacken(session):
159160

160161
session.run("black", *python_files)
161162

162-
163163
#
164164
# Sample Tests
165165
#
@@ -199,9 +199,9 @@ def py(session):
199199
if session.python in TESTED_VERSIONS:
200200
_session_tests(session)
201201
else:
202-
session.skip(
203-
"SKIPPED: {} tests are disabled for this sample.".format(session.python)
204-
)
202+
session.skip("SKIPPED: {} tests are disabled for this sample.".format(
203+
session.python
204+
))
205205

206206

207207
#

0 commit comments

Comments
 (0)