From 064a8ab65c126edab58b8308e80d182ccca6cfa3 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 20 May 2024 18:17:00 +0200 Subject: [PATCH] Correct spelling mistakes --- CHANGELOG.md | 8 ++++---- Makefile | 6 +++--- pass_import/__init__.py | 2 +- pass_import/__main__.py | 2 +- pass_import/audit.py | 2 +- pass_import/detecter.py | 2 +- pass_import/managers/lastpass.py | 4 ++-- share/__main__.py | 14 +++++++------- tests/exports/test_lastpass.py | 2 +- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbac253..a1fdac3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,7 +53,7 @@ The format is based on [Keep a Changelog]. - Support for python 3.10, dropped support for python 3.6 - Remove Travis CI in favor of Github Action. - The man pages are now generated from markdown with pandoc. -- Various refractor, style and linter improvments. +- Various refactor, style and linter improvements. ### Fixed @@ -135,7 +135,7 @@ targeted password manager. - pass-import can file encrypted by one of the supported algo before to import it. - pass import is now available in three way: * As a `pass` extension `pass import` - * As an independant command line program: `pimport` + * As an independent command line program: `pimport` * As a python library `pass_import` - Added support for the following password managers: @@ -153,7 +153,7 @@ targeted password manager. - Added pip packaging. ### Changed -- The command line interface changed completly. See `pass import -h` +- The command line interface changed completely. See `pass import -h` - The old password manager name are not valid anymore - Removed old bash tests - Dropped support for python 3.4 & python 3.5 @@ -172,7 +172,7 @@ targeted password manager. ### Added - Added support for generic OTP entry import -- Added support for binary attachements for manager that support it. [#63](https://github.com/roddhjav/pass-import/issues/63) +- Added support for binary attachments for manager that support it. [#63](https://github.com/roddhjav/pass-import/issues/63) - Added support for the 10 following password managers: [#84](https://github.com/roddhjav/pass-import/pull/84) * passpie * keeper diff --git a/Makefile b/Makefile index 1ad47c1..7cf29e4 100644 --- a/Makefile +++ b/Makefile @@ -8,15 +8,15 @@ DESTDIR ?= / all: @python3 setup.py build - @echo "pass-import was built successfully. You can now install it wit \"make install\"" + @echo "pass-import was built successfully. You can now install it with \"make install\"" install: @python3 setup.py install --root="${DESTDIR}" --optimize=1 --skip-build - @echo "pass-import is installed succesfully" + @echo "pass-import is installed successfully" local: @python3 setup.py install --user --optimize=1 - @echo "pass-import is localy installed succesfully." + @echo "pass-import is locally installed successfully." @echo "Remember to set PASSWORD_STORE_ENABLE_EXTENSIONS to 'true' for the extension to be enabled." tests: diff --git a/pass_import/__init__.py b/pass_import/__init__.py index c099e9a..7b24303 100644 --- a/pass_import/__init__.py +++ b/pass_import/__init__.py @@ -82,7 +82,7 @@ def matrix(self, cap=Cap.IMPORT) -> Dict[str, List[Callable]]: """Return a dict of ordered managers classes and formats. :return dict matrix: - { name: [pm_1, pm_2, ..., pm_n] } such as pm1 is the dedault pm and + { name: [pm_1, pm_2, ..., pm_n] } such as pm1 is the default pm and the other pm are ordered by they format. """ umatrix = defaultdict(list) # unordered matrix diff --git a/pass_import/__main__.py b/pass_import/__main__.py index 72ab640..72397e8 100644 --- a/pass_import/__main__.py +++ b/pass_import/__main__.py @@ -364,7 +364,7 @@ def pass_import(conf, cls_import): importer.parse() if not importer.secure: # pragma: no cover conf.warning(f"The password manager {conf['importer']} has " - "been flagged as unsecure, you should update all " + "been flagged as insecure, you should update all " "your newly imported credentials.") return importer.data diff --git a/pass_import/audit.py b/pass_import/audit.py index 86c5f97..de273e1 100644 --- a/pass_import/audit.py +++ b/pass_import/audit.py @@ -84,7 +84,7 @@ def password(self): self.breached.append((entry.get('password', ''), count)) def zxcvbn(self): - """Password strength estimaton usuing Dropbox' zxcvbn.""" + """Password strength estimation using Dropbox' zxcvbn.""" for entry in self.data: if entry.get('password', '') == '': continue diff --git a/pass_import/detecter.py b/pass_import/detecter.py index b9540f1..fd8f060 100644 --- a/pass_import/detecter.py +++ b/pass_import/detecter.py @@ -54,4 +54,4 @@ def checkheader(self, header: List, only: bool = False) -> bool: @classmethod @abstractmethod def header(cls): - """Commom interface to get format header.""" + """Common interface to get format header.""" diff --git a/pass_import/managers/lastpass.py b/pass_import/managers/lastpass.py index 259b39d..08f280e 100644 --- a/pass_import/managers/lastpass.py +++ b/pass_import/managers/lastpass.py @@ -25,7 +25,7 @@ class LastpassCLI(CLI): .. code-block:: yml lastpass: - login: + login: """ name = 'lastpass' @@ -59,7 +59,7 @@ def __init__(self, prefix=None, settings=None): self._setenv('LPASS_CLIPBOARD_COMMAND') def _path(self, path, rep=os.sep): - r"""Lpass is not consitent with / and '\\'. Replace them by os.sep.""" + r"""Lpass is not consistent with / and '\\'. Replace them by os.sep.""" return path.replace('/', rep).replace(self.sep, rep) def sync(self): diff --git a/share/__main__.py b/share/__main__.py index b6cffc6..9b3d6ef 100755 --- a/share/__main__.py +++ b/share/__main__.py @@ -70,7 +70,7 @@ def genrow(self): @property def format(self): - """Get format formated.""" + """Get format formatted.""" res = '' if self.pm.format != '': if self.man: @@ -81,7 +81,7 @@ def format(self): @property def version(self): - """Get version formated.""" + """Get version formatted.""" res = '' if self.pm.version != '': res = f' v{self.pm.version}' @@ -89,12 +89,12 @@ def version(self): @property def url(self): - """Get url formated.""" + """Get url formatted.""" return self.pm.url @property def hexport(self): - """Get export help formated.""" + """Get export help formatted.""" res = '' if self.markdown: res = self.urlto_markdown(self.pm.hexport) @@ -108,7 +108,7 @@ def hexport(self): @property def himport(self): - """Get import help formated.""" + """Get import help formatted.""" res = self.pm.himport if res == '': res = f"{self.prog} {self.pm.name} file.{self.pm.format}" @@ -116,7 +116,7 @@ def himport(self): @property def usage(self): - """Get usage formated.""" + """Get usage formatted.""" res = self.pm.usage() if res != '': res = f'{res}\n\n' @@ -124,7 +124,7 @@ def usage(self): @property def description(self): - """Get description formated.""" + """Get description formatted.""" return self.pm.description() diff --git a/tests/exports/test_lastpass.py b/tests/exports/test_lastpass.py index 7009d06..cf83d78 100644 --- a/tests/exports/test_lastpass.py +++ b/tests/exports/test_lastpass.py @@ -107,7 +107,7 @@ def test_lastpass_insert(self, command): @tests.skipIfNo('lastpass') class TestExportLastpassAPI(tests.Test): - """Test for Lastpass with API connexion.""" + """Test for Lastpass with API connection.""" def setUp(self): self._credentials('lastpass')