Skip to content

Commit ecf3409

Browse files
Fix Ruff rule ISC linting violations
1 parent da1edf6 commit ecf3409

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: tfx/examples/penguin/penguin_utils_cloud_tuner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def tuner_fn(fn_args: tfx.components.FnArgs) -> tfx.components.TunerFnResult:
229229
datetime.datetime.now().strftime('%Y%m%d%H'))
230230

231231
if _CLOUD_FIT_IMAGE == 'gcr.io/my-project-id/cloud_fit':
232-
raise ValueError('Build your own cloud_fit image, ' +
232+
raise ValueError('Build your own cloud_fit image, '
233233
'default dummy one is used!')
234234

235235
tuner = cloud_tuner.DistributingCloudTuner(

Diff for: tfx/experimental/templates/container_based_test_case.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _prepare_data(self):
102102
io_utils.copy_file(
103103
'data/data.csv',
104104
f'gs://{self._BUCKET_NAME}/{self._DATA_DIRECTORY_NAME}/'
105-
+ f'{self._pipeline_name}/data.csv')
105+
f'{self._pipeline_name}/data.csv')
106106

107107
@retry.retry(ignore_eventual_failure=True)
108108
def _delete_pipeline_data(self):

Diff for: tfx/types/artifact.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _get_artifact_type(cls):
247247
if type_annotation_cls:
248248
if not issubclass(type_annotation_cls, SystemArtifact):
249249
raise ValueError(
250-
'%s''s TYPE_ANNOTATION %s is not a subclass of SystemArtifact.' %
250+
'%ss TYPE_ANNOTATION %s is not a subclass of SystemArtifact.' %
251251
(cls, type_annotation_cls))
252252
if type_annotation_cls.MLMD_SYSTEM_BASE_TYPE:
253253
artifact_type.base_type = type_annotation_cls.MLMD_SYSTEM_BASE_TYPE

0 commit comments

Comments
 (0)