diff --git a/borgmatic/commands/borgmatic.py b/borgmatic/commands/borgmatic.py index c04dbac5f..568c4357d 100644 --- a/borgmatic/commands/borgmatic.py +++ b/borgmatic/commands/borgmatic.py @@ -9,6 +9,7 @@ from subprocess import CalledProcessError import colorama import pkg_resources +from borgmatic import hook from borgmatic.borg import check as borg_check from borgmatic.borg import create as borg_create from borgmatic.borg import environment as borg_environment @@ -17,7 +18,6 @@ from borgmatic.borg import info as borg_info from borgmatic.borg import init as borg_init from borgmatic.borg import list as borg_list from borgmatic.borg import prune as borg_prune -from borgmatic.commands import hook from borgmatic.config import checks, collect, convert, validate from borgmatic.logger import configure_logging, get_logger, should_do_markup from borgmatic.signals import configure_signals diff --git a/borgmatic/commands/hook.py b/borgmatic/hook.py similarity index 100% rename from borgmatic/commands/hook.py rename to borgmatic/hook.py diff --git a/tests/unit/commands/test_hook.py b/tests/unit/commands/test_hook.py index 6ad94f3f7..eb9cfb769 100644 --- a/tests/unit/commands/test_hook.py +++ b/tests/unit/commands/test_hook.py @@ -2,7 +2,7 @@ import logging from flexmock import flexmock -from borgmatic.commands import hook as module +from borgmatic import hook as module def test_execute_hook_invokes_each_command():