From b5b5f61577bc777047dc2e7f4ee2a5927b316dce Mon Sep 17 00:00:00 2001 From: Antti Kaihola <13725+akaihola@users.noreply.github.com> Date: Fri, 25 Feb 2022 17:16:14 +0200 Subject: [PATCH] Fix English spelling and grammar --- src/darker/__main__.py | 2 +- src/darker/tests/test_import_sorting.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/darker/__main__.py b/src/darker/__main__.py index cc1f94532..5169bfae0 100644 --- a/src/darker/__main__.py +++ b/src/darker/__main__.py @@ -73,7 +73,7 @@ def format_edited_parts( edited_linenums_differ = EditedLinenumsDiffer(root, revrange) for relative_path_in_rev2 in sorted(changed_files): # With VSCode, `relative_path_in_rev2` may be a `.py..tmp` file in the - # working tree insted of a `.py` file. + # working tree instead of a `.py` file. absolute_path_in_rev2 = root / relative_path_in_rev2 rev2_content = git_get_content_at_revision( relative_path_in_rev2, revrange.rev2, root diff --git a/src/darker/tests/test_import_sorting.py b/src/darker/tests/test_import_sorting.py index 3797bf420..8e00fa670 100644 --- a/src/darker/tests/test_import_sorting.py +++ b/src/darker/tests/test_import_sorting.py @@ -210,7 +210,7 @@ def test_isort_file_skip_comment(): ), ) def test_diff_overlaps_with_edits(edited_linenums, isort_chunks, expect): - """Overlapping edits and import sortings are detected correctly""" + """Overlapping edits and sorting of imports are detected correctly""" result = darker.import_sorting._diff_overlaps_with_edits( edited_linenums, isort_chunks )