From 14256e8ab9dad68a083cea0b0d1150d865494db5 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 10 Sep 2023 16:20:31 +0200 Subject: [PATCH] Fix typos discovered by codespell (#181) * Fix typos discovered by codespell * codespell --ignore-words-list=cheking,clen,fo,ned,reurn,smoe,tihs --- pyspelling/__init__.py | 4 ++-- pyspelling/__main__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyspelling/__init__.py b/pyspelling/__init__.py index 0be704a..4d9a234 100644 --- a/pyspelling/__init__.py +++ b/pyspelling/__init__.py @@ -11,7 +11,7 @@ __all__ = ("spellcheck",) -STEP_ERROR = """Pipline step in unexpected format: {} +STEP_ERROR = """Pipeline step in unexpected format: {} Each pipeline step should be in the form {{key: options: {{}}}} not {{key: {{}}, key2: {{}}}} """ @@ -183,7 +183,7 @@ def _walk_src(self, targets, flags, limit, pipeline, expect_match): found_something = False for target in targets: - # Glob using `S` for patterns wit `|` and `O` to exclude directories. + # Glob using `S` for patterns with `|` and `O` to exclude directories. kwargs = {"flags": flags | glob.S | glob.O} kwargs['limit'] = limit for f in glob.iglob(target, **kwargs): diff --git a/pyspelling/__main__.py b/pyspelling/__main__.py index a94088b..c55147e 100644 --- a/pyspelling/__main__.py +++ b/pyspelling/__main__.py @@ -20,7 +20,7 @@ def main(): parser.add_argument( '--source', '-S', action='append', - help="Specify override file pattern. Only applicaple when specifying exactly one --name." + help="Specify override file pattern. Only applicable when specifying exactly one --name." ) parser.add_argument( '--spellchecker', '-s', action='store', default='', help="Choose between aspell and hunspell"