8000 Lint · dalequark/python-docs-samples@60a53c8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 60a53c8

Browse files
committed
Lint
1 parent 28c0ed2 commit 60a53c8

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

translate/automl/dataset_management_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ def test_export_dataset(capsys):
7878
bucket = storage_client.get_bucket('{}-vcm'.format(project_id))
7979
if len(list(bucket.list_blobs(prefix='TEST_EXPORT_OUTPUT'))) > 0:
8080
for blob in bucket.list_blobs(prefix='TEST_EXPORT_OUTPUT'):
81-
blob.delete()
81+
blob.delete()

translate/automl/export_dataset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ def export_dataset(project_id, dataset_id, gcs_uri):
3939
response = client.export_data(dataset_full_id, output_config)
4040
print('Dataset exported. {}'.format(response.result()))
4141
# [END automl_translate_export_dataset]
42-

translate/automl/list_model_evaluations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def list_model_evaluations(project_id, model_id):
3232
for evaluation in client.list_model_evaluations(model_full_id, ''):
3333
print('Model evaluation name: {}'.format(evaluation.name))
3434
print(
35-
'Model annotation spec id: {}'.format(evaluation.annotation_spec_id))
35+
'Model annotation spec id: {}'.format(
36+
evaluation.annotation_spec_id))
3637
print('Create Time:')
3738
print('\tseconds: {}'.format(evaluation.create_time.seconds))
3839
print('\tnanos: {}'.format(evaluation.create_time.nanos / 1e9))

translate/automl/list_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def list_models(project_id):
3131
print('List of models:')
3232
for model in response:
3333
# Display the model information.
34-
if model.deployment_state == automl.enums.Model.DeploymentState.DEPLOYED:
34+
if model.deployment_state == \
35+
automl.enums.Model.DeploymentState.DEPLOYED:
3536
deployment_state = 'deployed'
3637
else:
3738
deployment_state = 'undeployed'

translate/automl/model_management_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
import datetime
1817
import os
1918

20-
from google.cloud import automl_v1beta1 as automl
2119
import pytest
2220

2321
import list_models

0 commit comments

Comments
 (0)
0