Skip to content

refactor: Tidy up some code - #141

Merged
MaxG87 merged 9 commits into
mainfrom
move-helper-functions
Jul 22, 2026
Merged

refactor: Tidy up some code#141
MaxG87 merged 9 commits into
mainfrom
move-helper-functions

Conversation

@MaxG87

@MaxG87 MaxG87 commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Many helper functions were moved to shell-interface. A all-project
conftest.py was created and a first fixture deduplicated. Both
libraries got rid of loguru. That functionality was unused and a
major release is a good opportunity to tidy up.

@MaxG87
MaxG87 force-pushed the move-helper-functions branch 2 times, most recently from a6e386d to da45d5e Compare July 22, 2026 18:35
MaxG87 added 5 commits July 22, 2026 21:14
Moving this helper caused some mock based tests to fail. They were
rewritten to stop using mocking. Instead, they use a spy to ensure the
expected refresh commands were issued.

Working on this revealed an edge-case bug. When no files or folders were
configured to be backed up, the restic backend crashed due to a crash of
restic. This is prevented by a guard now.
This reduces the length of the main shell-interface file, improving
maintainability.
The logging functionality was never used, for years. A major release
seems to be the best opportunity to get rid of it.
@MaxG87
MaxG87 force-pushed the move-helper-functions branch from da45d5e to c79226f Compare July 22, 2026 19:14
@MaxG87
MaxG87 merged commit 3f75c8a into main Jul 22, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant