From 223d9d28809a3560a44bf4f06d83142843e5b8e4 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 22 Dec 2023 10:39:09 +0100 Subject: [PATCH] linting --- dotdrop/options.py | 1 + dotdrop/updater.py | 8 ++++---- tests-ng/uninstall-corner-cases.sh | 9 --------- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/dotdrop/options.py b/dotdrop/options.py index d510f01..3ead971 100644 --- a/dotdrop/options.py +++ b/dotdrop/options.py @@ -186,6 +186,7 @@ class Options(AttrMonitor): self._set_attr_err = True def debug_command(self): + """print the original command""" self.log.dbg(f'command: {self.argv}') @classmethod diff --git a/dotdrop/updater.py b/dotdrop/updater.py index 0890e14..2633be1 100644 --- a/dotdrop/updater.py +++ b/dotdrop/updater.py @@ -350,8 +350,8 @@ class Updater: compare=False) def _merge_files_copy_left_only(self, diff, left, right, - ignore_missing_in_dotdrop, - ignores): + ignore_missing_in_dotdrop, + ignores): """copy files that don't exist in dotdrop""" self.log.dbg(f'_merge_dirs_copy_left_only: {diff.left_only}') for toadd in diff.left_only: @@ -413,8 +413,8 @@ class Updater: ignores) # files self._merge_files_copy_left_only(diff, left, right, - ignore_missing_in_dotdrop, - ignores) + ignore_missing_in_dotdrop, + ignores) self._merge_files_remove_right_only(diff, right, ignores) # compare rights diff --git a/tests-ng/uninstall-corner-cases.sh b/tests-ng/uninstall-corner-cases.sh index 0cb56d7..7474e55 100755 --- a/tests-ng/uninstall-corner-cases.sh +++ b/tests-ng/uninstall-corner-cases.sh @@ -26,15 +26,6 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename "${BASH_SOURCE[0]}") <==$(tput sg ################################################################ # this is the test ################################################################ -# $1 pattern -# $2 path -grep_or_fail() -{ - if ! grep "${1}" "${2}" >/dev/null 2>&1; then - echo "${PRE} pattern \"${1}\" not found in ${2}" - exit 1 - fi -} # the dotfile source tmps=$(mktemp -d --suffix='-dotdrop-tests' || mktemp -d)