From de49992ebdc35436c7f5a966cf9ee6be8a42fda2 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 3 Jul 2024 15:21:48 -0400 Subject: [PATCH] [DATALAD RUNCMD] run codespell throughout fixing typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- CONTRIBUTING.rst | 2 +- Dockerfile | 2 +- docs/explanations/folders.rst | 2 +- docs/explanations/notes.rst | 2 +- pyproject.toml | 2 +- src/gphotos_sync/Checks.py | 4 ++-- src/gphotos_sync/GoogleAlbumsSync.py | 2 +- src/gphotos_sync/__main__.py | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 90de1950..8c999914 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -39,7 +39,7 @@ on your workstation as follows:: In both cases tox -p runs in parallel the following checks: - - Buiild Spinx Documentation + - Build Spinx Documentation - run pytest on all tests in ./tests - run mypy linting on all files in ./src ./tests - run pre-commit checks: diff --git a/Dockerfile b/Dockerfile index 192d44a9..a128841e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ RUN pip install ${PIP_OPTIONS} FROM python:3.11-slim as runtime -# Add apt-get system dependecies for runtime here if needed +# Add apt-get system dependencies for runtime here if needed # copy the virtual environment from the build stage and put it in PATH COPY --from=build /venv/ /venv/ diff --git a/docs/explanations/folders.rst b/docs/explanations/folders.rst index 49e943fa..c67209b5 100644 --- a/docs/explanations/folders.rst +++ b/docs/explanations/folders.rst @@ -22,7 +22,7 @@ albums: folder. The folder names will be 'albums/YYYY/MM Original Album Name'. Note that these are the default layouts and you can change what is downloaded -and how it is layed out with command line options. See the help for details:: +and how it is laid out with command line options. See the help for details:: gphotos-sync --help diff --git a/docs/explanations/notes.rst b/docs/explanations/notes.rst index 31d97876..d9258b1d 100644 --- a/docs/explanations/notes.rst +++ b/docs/explanations/notes.rst @@ -13,5 +13,5 @@ Google Photos Library in the cloud. There are two primary reasons for this: - Even if the API allowed it, this would be a very hard problem, because it is often hard to identify if a local photo or video matches one in the - cloud. Besides this, I would not want the resposibility of potentially + cloud. Besides this, I would not want the responsibility of potentially trashing someone's photo collection. diff --git a/pyproject.toml b/pyproject.toml index 06ededa3..a8b92f65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,7 +76,7 @@ filterwarnings = [ "error", "ignore:.*socket.*:ResourceWarning", # this deprecation is rather serious for gphotos-sync as it relies on sqlite - # doing date conversion quite heavily - will ignore the deprection for now + # doing date conversion quite heavily - will ignore the deprecation for now # DeprecationWarning: The default datetime adapter is deprecated as of Python 3.12; "ignore:.*sqlite3.*:DeprecationWarning:", # like the above diff --git a/src/gphotos_sync/Checks.py b/src/gphotos_sync/Checks.py index 6cdf98e7..862d5c0b 100644 --- a/src/gphotos_sync/Checks.py +++ b/src/gphotos_sync/Checks.py @@ -130,7 +130,7 @@ def _get_max_path_length(self) -> int: except BaseException: # for failures choose a safe size for Windows filesystems log.info( - f"cant determine max filepath length, defaulting to " f"{max_length}" + f"can't determine max filepath length, defaulting to " f"{max_length}" ) log.info("Max Path Length: %d" % max_length) return max_length @@ -145,7 +145,7 @@ def _get_max_filename_length(self) -> int: # for failures choose a safe size for Windows filesystems max_filename = 248 log.info( - f"cant determine max filename length, " f"defaulting to {max_filename}" + f"can't determine max filename length, " f"defaulting to {max_filename}" ) log.info("Max filename length: %d" % max_filename) return max_filename diff --git a/src/gphotos_sync/GoogleAlbumsSync.py b/src/gphotos_sync/GoogleAlbumsSync.py index 3baa5ca4..fcd1576b 100644 --- a/src/gphotos_sync/GoogleAlbumsSync.py +++ b/src/gphotos_sync/GoogleAlbumsSync.py @@ -376,7 +376,7 @@ def create_album_content_links(self): follow_symlinks=False, ) except PermissionError: - log.debug(f"cant set date on {link_file}") + log.debug(f"can't set date on {link_file}") except FileExistsError as err: log.info("duplicate link to %s: %s", full_file_name, err) diff --git a/src/gphotos_sync/__main__.py b/src/gphotos_sync/__main__.py index 812e0e2a..866a7b96 100644 --- a/src/gphotos_sync/__main__.py +++ b/src/gphotos_sync/__main__.py @@ -76,7 +76,7 @@ def __init__(self): "--conf", action="store", help="use the .ini configuration file to initialise arguments. " - "Command line provided arguments will superceed the ones in the config file", + "Command line provided arguments will supersede the ones in the config file", ) parser.add_argument( "root_folder", @@ -286,7 +286,7 @@ def __init__(self): ) parser.add_argument( "--max-filename", - help="Set the maxiumum filename length for target filesystem." + help="Set the maximum filename length for target filesystem." "This overrides the automatic detection.", default=0, )