Skip to content

Commit 829d9c3

Browse files
committed
fix: clean up whitespace and improve code formatting across multiple files
1 parent a2018e7 commit 829d9c3

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

src/flowerpower/job_queue/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
from ..cfg import ProjectConfig
2525
from ..fs import AbstractFileSystem, get_filesystem
26+
2627
# from ..utils.misc import update_config_from_dict
2728
from ..settings import BACKEND_PROPERTIES
2829

src/flowerpower/pipeline/io.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77

88
import posixpath
99

10+
from loguru import logger
1011
from rich.console import Console
1112

1213
# Import necessary config types and utility functions
1314
from ..fs.base import (
1415
AbstractFileSystem,
1516
BaseStorageOptions,
16-
get_filesystem,
1717
DirFileSystem,
18+
get_filesystem,
1819
)
19-
from .registry import PipelineRegistry
20-
from loguru import logger
2120
from ..settings import LOG_LEVEL
2221
from ..utils.logging import setup_logging
22+
from .registry import PipelineRegistry
2323

2424
console = Console()
2525

@@ -103,7 +103,7 @@ def _get_filesystem(base_dir, fs, storage_options):
103103
# raise NotImplementedError(
104104
# f"The destination filesystem {dest_fs }does not support get_mapper."
105105
# )
106-
106+
107107
if files is None:
108108
files = src_fs.glob("**/*.py")
109109
files.extend(src_fs.glob("**/*.yml"))
@@ -123,11 +123,10 @@ def _get_filesystem(base_dir, fs, storage_options):
123123
logger.warning(
124124
f"File {file} already exists in the destination. Skipping write. Use overwrite=True to overwrite."
125125
)
126-
continue
127-
126+
continue
127+
128128
content = src_fs.read_bytes(file)
129129
dest_fs.write_bytes(file, content)
130-
131130

132131
def import_pipeline(
133132
self,
@@ -419,7 +418,7 @@ def export_all(
419418
# pm.export_all("s3://my-bucket/pipelines_backup", storage_options={"key": "...", "secret": "..."}, overwrite=False)
420419
```
421420
"""
422-
#sync the filesystem
421+
# sync the filesystem
423422
self._sync_filesystem(
424423
src_base_dir=".",
425424
src_fs=self._fs,
@@ -432,4 +431,4 @@ def export_all(
432431
)
433432
console.print(
434433
f"✅ Exported all pipelines from [bold blue]{self.project_cfg.name}[/bold blue] to [green]{dest_base_dir}[/green]"
435-
)
434+
)

src/flowerpower/pipeline/job_queue.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from rich import print as rprint
1212

1313
from .. import settings
14+
1415
# Import necessary config types
1516
from ..cfg import PipelineConfig, ProjectConfig
1617
from ..fs import AbstractFileSystem

src/flowerpower/pipeline/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ def import_many(
835835
storage_options (dict | BaseStorageOptions | None, optional): Options for source filesystem access
836836
Example: {"key": "ACCESS_KEY", "secret": "SECRET_KEY"}
837837
overwrite (bool, optional): Whether to replace existing pipelines
838-
838+
839839
Raises:
840840
ValueError: If any pipeline exists and overwrite=False
841841
FileNotFoundError: If source pipelines not found

src/flowerpower/plugins/mqtt/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def run_in_background(
284284
Returns:
285285
None
286286
287-
287+
288288
"""
289289
if self._client is None or not self._client.is_connected():
290290
self.connect()

0 commit comments

Comments
 (0)