From 09ed5b21d1852e13dde14111c063d5f19523f9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Mon, 7 Sep 2026 05:16:36 -0400 Subject: [PATCH] docs: fix typos in comments, docstrings and CLI help text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Léon Avic Simmons --- docs/index.md | 2 +- migration_lint/analyzer/base.py | 2 +- migration_lint/django/management/commands/migration_lint.py | 2 +- migration_lint/extractor/base.py | 2 +- migration_lint/extractor/model.py | 2 +- migration_lint/main.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/index.md b/docs/index.md index ca1bd2b..8c9de20 100644 --- a/docs/index.md +++ b/docs/index.md @@ -44,7 +44,7 @@ migration-lint --loader=local_git --extractor= ``` It will examine files in current repository that are added or modified -and not yet commited. +and not yet committed. ### GitLab diff --git a/migration_lint/analyzer/base.py b/migration_lint/analyzer/base.py index 5e00257..82486d5 100644 --- a/migration_lint/analyzer/base.py +++ b/migration_lint/analyzer/base.py @@ -26,7 +26,7 @@ def lint( migration_sql: str, changed_files: List[ExtendedSourceDiff], ) -> List[str]: - """Perform SQL migartion linting.""" + """Perform SQL migration linting.""" raise NotImplementedError() diff --git a/migration_lint/django/management/commands/migration_lint.py b/migration_lint/django/management/commands/migration_lint.py index 06575f2..3a1a61a 100644 --- a/migration_lint/django/management/commands/migration_lint.py +++ b/migration_lint/django/management/commands/migration_lint.py @@ -33,7 +33,7 @@ def add_arguments(self, parser): dest="gitlab_instance", type=str, default=os.getenv("CI_SERVER_URL"), - help="GitLab instance instance (protocol://host:port)", + help="GitLab instance (protocol://host:port)", ) parser.add_argument( "--project-id", diff --git a/migration_lint/extractor/base.py b/migration_lint/extractor/base.py index e601af3..d4e8cc9 100644 --- a/migration_lint/extractor/base.py +++ b/migration_lint/extractor/base.py @@ -31,7 +31,7 @@ def __new__( # Not the base class. if not hasattr(cls, "NAME"): raise NotImplementedError( - f"extractor {cls.__name__} doesn't provie name", + f"extractor {cls.__name__} doesn't provide name", ) mcls.extractors[cls.NAME] = cls diff --git a/migration_lint/extractor/model.py b/migration_lint/extractor/model.py index 24130eb..1bd48ce 100644 --- a/migration_lint/extractor/model.py +++ b/migration_lint/extractor/model.py @@ -20,7 +20,7 @@ class Migration: @dataclass class ExtendedSourceDiff(SourceDiff): - """An object desribing a single changed file. + """An object describing a single changed file. - `path` -- the path to the file; - `old_path` -- the previous path to the file; differs from `path` if the diff --git a/migration_lint/main.py b/migration_lint/main.py index fd8accc..805ddab 100644 --- a/migration_lint/main.py +++ b/migration_lint/main.py @@ -38,7 +38,7 @@ ) @click.option( "--gitlab-instance", - help="GitLab instance instance (protocol://host:port)", + help="GitLab instance (protocol://host:port)", default=os.getenv("CI_SERVER_URL"), ) @click.option(