Skip to content

Commit c034df5

Browse files
committed
Fix ruff rules
1 parent 5ec4d6c commit c034df5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tfx/orchestration/portable/base_executor_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ def with_execution_watcher(
8484
self._execution_watcher_address = execution_watcher_address
8585
return self
8686

87-
def handle_stop(self) -> None:# noqa: B027
87+
def handle_stop(self) -> None: # noqa: B027
8888
"""Executor Operator specific logic to clean up after it is stopped."""
8989
pass

tfx/tools/cli/handler/dag_runner_patcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ def __init__(self, call_real_run=True):
5656
self._run_called = False
5757
self._call_real_run = call_real_run
5858

59-
def _before_run(self, runner: tfx_runner.TfxRunner,
59+
def _before_run(self, runner: tfx_runner.TfxRunner, # noqa: B027
6060
pipeline: Union[pipeline_pb2.Pipeline, tfx_pipeline.Pipeline],
6161
context: MutableMapping[str, Any]) -> None:
6262
pass
6363

64-
def _after_run(self, runner: tfx_runner.TfxRunner,
64+
def _after_run(self, runner: tfx_runner.TfxRunner, # noqa: B027
6565
pipeline: Union[pipeline_pb2.Pipeline, tfx_pipeline.Pipeline],
6666
context: MutableMapping[str, Any]) -> None:
6767
pass

tfx/types/system_artifacts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from ml_metadata.metadata_store import mlmd_types
2222

2323

24-
class SystemArtifact(abc.ABC):# noqa: B024
24+
class SystemArtifact(abc.ABC): # noqa: B024
2525
"""TFX system artifact base class.
2626
2727
A user may create a subclass of SystemArtifact and override the

tfx/types/system_executions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from ml_metadata.metadata_store import mlmd_types
2222

2323

24-
class SystemExecution(abc.ABC):# noqa: B024
24+
class SystemExecution(abc.ABC): # noqa: B024
2525
"""TFX system execution base class.
2626
2727
A user may create a subclass of SystemExecution and override the

0 commit comments

Comments
 (0)