From 8ea9d3edef146c239086a7aec3cec9ead1bd32a9 Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer <35225576+afuetterer@users.noreply.github.com> Date: Sat, 14 Oct 2023 09:09:57 +0200 Subject: [PATCH] chore: fix typos (#10022) --- dvc/repo/experiments/__init__.py | 2 +- dvc/repo/stage.py | 2 +- dvc/utils/__init__.py | 2 +- tests/func/repro/test_repro.py | 4 ++-- tests/func/repro/test_repro_pull.py | 4 ++-- tests/unit/repo/experiments/test_executor_status.py | 2 +- tests/unit/repo/test_repo.py | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dvc/repo/experiments/__init__.py b/dvc/repo/experiments/__init__.py index b5e9d22d7..fcf4c2a54 100644 --- a/dvc/repo/experiments/__init__.py +++ b/dvc/repo/experiments/__init__.py @@ -241,7 +241,7 @@ class Experiments: self.check_baseline(last_applied) return last_applied except BaselineMismatchError: - # If HEAD has moved since the the last applied experiment, + # If HEAD has moved since the last applied experiment, # the applied experiment is no longer relevant self.scm.remove_ref(EXEC_APPLY) return None diff --git a/dvc/repo/stage.py b/dvc/repo/stage.py index eca1d6041..9b1243d17 100644 --- a/dvc/repo/stage.py +++ b/dvc/repo/stage.py @@ -261,7 +261,7 @@ class StageLoad: Args: path: if not provided, default `dvc.yaml` is assumed. name: required for `dvc.yaml` files, ignored for `.dvc` files. - accept_group: if true, all of the the stages generated from `name` + accept_group: if true, all of the stages generated from `name` foreach are returned. glob: if true, `name` is considered as a glob, which is used to filter list of stages from the given `path`. diff --git a/dvc/utils/__init__.py b/dvc/utils/__init__.py index 42f5619f4..9a0c2d137 100644 --- a/dvc/utils/__init__.py +++ b/dvc/utils/__init__.py @@ -205,7 +205,7 @@ def boxify(message, border_color=None): def _visual_width(line): - """Get the the number of columns required to display a string""" + """Get the number of columns required to display a string""" return len(re.sub(colorama.ansitowin32.AnsiToWin32.ANSI_CSI_RE, "", line)) diff --git a/tests/func/repro/test_repro.py b/tests/func/repro/test_repro.py index 5f68c1e60..2573df9a9 100644 --- a/tests/func/repro/test_repro.py +++ b/tests/func/repro/test_repro.py @@ -442,7 +442,7 @@ def test_repro_list_of_commands_raise_and_stops_after_failure(tmp_dir, dvc, mult assert not (tmp_dir / "bar").exists() -def test_repro_pulls_mising_data_source(tmp_dir, dvc, mocker, local_remote): +def test_repro_pulls_missing_data_source(tmp_dir, dvc, mocker, local_remote): (foo,) = tmp_dir.dvc_gen("foo", "foo") dvc.push() @@ -454,7 +454,7 @@ def test_repro_pulls_mising_data_source(tmp_dir, dvc, mocker, local_remote): assert dvc.reproduce(pull=True) -def test_repro_pulls_mising_import(tmp_dir, dvc, mocker, erepo_dir, local_remote): +def test_repro_pulls_missing_import(tmp_dir, dvc, mocker, erepo_dir, local_remote): with erepo_dir.chdir(): erepo_dir.dvc_gen("foo", "foo", commit="first") diff --git a/tests/func/repro/test_repro_pull.py b/tests/func/repro/test_repro_pull.py index 8d4dbbe5c..294c1a357 100644 --- a/tests/func/repro/test_repro_pull.py +++ b/tests/func/repro/test_repro_pull.py @@ -4,7 +4,7 @@ from dvc.stage.cache import RunCacheNotSupported from dvc.utils.fs import remove -def test_repro_pulls_mising_data_source(tmp_dir, dvc, mocker, local_remote): +def test_repro_pulls_missing_data_source(tmp_dir, dvc, mocker, local_remote): (foo,) = tmp_dir.dvc_gen("foo", "foo") dvc.push() @@ -16,7 +16,7 @@ def test_repro_pulls_mising_data_source(tmp_dir, dvc, mocker, local_remote): assert dvc.reproduce(pull=True) -def test_repro_pulls_mising_import(tmp_dir, dvc, mocker, erepo_dir, local_remote): +def test_repro_pulls_missing_import(tmp_dir, dvc, mocker, erepo_dir, local_remote): with erepo_dir.chdir(): erepo_dir.dvc_gen("foo", "foo", commit="first") diff --git a/tests/unit/repo/experiments/test_executor_status.py b/tests/unit/repo/experiments/test_executor_status.py index c396b88a1..048cf46af 100644 --- a/tests/unit/repo/experiments/test_executor_status.py +++ b/tests/unit/repo/experiments/test_executor_status.py @@ -107,7 +107,7 @@ def test_workspace_executor_failed_status(dvc, scm, failed_exp_stage, queue_type assert executor_info.status == TaskStatus.FAILED -def test_executor_status_compatiblity(): +def test_executor_status_compatibility(): data = { "git_url": "file:///Users/home", "baseline_rev": "123", diff --git a/tests/unit/repo/test_repo.py b/tests/unit/repo/test_repo.py index 2d817f277..897a4c3b3 100644 --- a/tests/unit/repo/test_repo.py +++ b/tests/unit/repo/test_repo.py @@ -127,7 +127,7 @@ def test_branch_config(tmp_dir, scm): dvc.close() -def test_dynamic_cache_initalization(tmp_dir, scm): +def test_dynamic_cache_initialization(tmp_dir, scm): dvc = Repo.init() with dvc.config.edit() as conf: conf["cache"]["ssh"] = "foo"