Skip to content

Commit

Permalink
Fix Ruff rule ISC linting violations
Browse files Browse the repository at this point in the history
  • Loading branch information
smokestacklightnin committed Oct 27, 2024
1 parent da1edf6 commit ecf3409
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tfx/examples/penguin/penguin_utils_cloud_tuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def tuner_fn(fn_args: tfx.components.FnArgs) -> tfx.components.TunerFnResult:
datetime.datetime.now().strftime('%Y%m%d%H'))

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

tuner = cloud_tuner.DistributingCloudTuner(
Expand Down
2 changes: 1 addition & 1 deletion tfx/experimental/templates/container_based_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _prepare_data(self):
io_utils.copy_file(
'data/data.csv',
f'gs://{self._BUCKET_NAME}/{self._DATA_DIRECTORY_NAME}/'
+ f'{self._pipeline_name}/data.csv')
f'{self._pipeline_name}/data.csv')

@retry.retry(ignore_eventual_failure=True)
def _delete_pipeline_data(self):
Expand Down
2 changes: 1 addition & 1 deletion tfx/types/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _get_artifact_type(cls):
if type_annotation_cls:
if not issubclass(type_annotation_cls, SystemArtifact):
raise ValueError(
'%s''s TYPE_ANNOTATION %s is not a subclass of SystemArtifact.' %
'%ss TYPE_ANNOTATION %s is not a subclass of SystemArtifact.' %
(cls, type_annotation_cls))
if type_annotation_cls.MLMD_SYSTEM_BASE_TYPE:
artifact_type.base_type = type_annotation_cls.MLMD_SYSTEM_BASE_TYPE
Expand Down

0 comments on commit ecf3409

Please sign in to comment.