Skip to content

Commit fc0559d

Browse files
committed
chore: update import lines
1 parent ec4c22f commit fc0559d

5 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ import pytest
222222
from unittest.mock import MagicMock, patch
223223

224224
from autotarcompress.backup_manager import BackupManager
225-
from autotarcompress.utils.hash_utils import verify_hash
225+
from autotarcompress.utils import verify_hash
226226

227227

228228
class TestBackupManager:

‎src/autotarcompress/backup_manager.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
from typing import TYPE_CHECKING
1515

1616
from autotarcompress.metadata import update_backup_metadata
17-
from autotarcompress.utils import calculate_sha256
1817
from autotarcompress.progress_bar import SimpleProgressBar
1918
from autotarcompress.size_calculator import SizeCalculator
2019
from autotarcompress.utils import (
20+
calculate_sha256,
2121
ensure_backup_folder,
2222
validate_and_expand_paths,
2323
)
@@ -364,4 +364,4 @@ def _prompt_overwrite(self, backup_path: Path) -> bool:
364364
response = (
365365
input("Do you want to overwrite it? (y/n): ").strip().lower()
366366
)
367-
return response == "y"
367+
return response == "y"

‎src/autotarcompress/extract_manager.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
if TYPE_CHECKING:
1919
from autotarcompress.config import BackupConfig
2020

21+
# TODO: extract decrypted not only .zst also .zst-decrypted file too.
22+
2123

2224
class ExtractManager:
2325
"""Manager class for extraction operations.

‎src/autotarcompress/logger.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ def setup_application_logging(log_level: int = logging.INFO) -> None:
5353
file_handler.setFormatter(file_formatter)
5454
file_handler.setLevel(log_level)
5555

56+
# TODO: refactor stdout to stderr to support pipe and automation via jq etc.
57+
# user still see the errors on console but piping would only show outputs
58+
# ofcourse you need to use stdout(e.g print) to show output to user
59+
#
5660
# Configure console handler (user feedback and errors)
5761
console_handler = logging.StreamHandler(sys.stdout)
5862
console_handler.setLevel(logging.INFO)

‎src/autotarcompress/metadata.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
logger = logging.getLogger(__name__)
2020

21+
# TODO: include backed up dirs and no such file dirs to metadata
22+
2123

2224
@dataclass
2325
class BackupMetadata:

0 commit comments

Comments
 (0)