Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Build.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def list_commands(self, *args, **kwargs): # pylint: disable=unused-argument
this_dir,
package_dir.name,
app,
default_min_coverage=75.0,
default_min_coverage=87.0, # TODO: Increase this to 90%
)

UpdateVersion = RepoBuildTools.UpdateVersionFuncFactory(
Expand Down
8 changes: 6 additions & 2 deletions src/FileBackup/CommandLine/EntryPoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# | Distributed under the MIT License.
# |
# ----------------------------------------------------------------------
"""This file serves as an example of how to create scripts that can be invoked from the command line once the package is installed."""
"""Tools to backup and restore files and directories."""

import sys

Expand All @@ -14,14 +14,15 @@

from FileBackup import __version__
from FileBackup.CommandLine import MirrorEntryPoint
from FileBackup.CommandLine import OffsiteEntryPoint


# ----------------------------------------------------------------------
class NaturalOrderGrouper(TyperGroup):
# pylint: disable=missing-class-docstring
# ----------------------------------------------------------------------
def list_commands(self, *args, **kwargs): # pylint: disable=unused-argument
return self.commands.keys()
return self.commands.keys() # pragma: no cover


# ----------------------------------------------------------------------
Expand All @@ -35,10 +36,13 @@ def list_commands(self, *args, **kwargs): # pylint: disable=unused-argument


app.add_typer(MirrorEntryPoint.app, name="mirror", help=MirrorEntryPoint.__doc__)
app.add_typer(OffsiteEntryPoint.app, name="offsite", help=OffsiteEntryPoint.__doc__)


@app.command("version", no_args_is_help=False)
def Version():
"""Displays the current version and exits."""

sys.stdout.write(f"FileBackup v{__version__}\n")


Expand Down
4 changes: 2 additions & 2 deletions src/FileBackup/CommandLine/MirrorEntryPoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class NaturalOrderGrouper(TyperGroup):
# pylint: disable=missing-class-docstring
# ----------------------------------------------------------------------
def list_commands(self, *args, **kwargs): # pylint: disable=unused-argument
return self.commands.keys()
return self.commands.keys() # pragma: no cover


# ----------------------------------------------------------------------
Expand Down Expand Up @@ -153,7 +153,7 @@ def Validate(
bool, CommandLineArguments.debug_option
] = CommandLineArguments.debug_option_default,
) -> None:
"""Validates perviously mirrored content in the backup data store."""
"""Validates previously mirrored content in the backup data store."""

with DoneManager.CreateCommandLine(
flags=DoneManagerFlags.Create(verbose=verbose, debug=debug),
Expand Down
Loading