diff --git a/src/darker/__main__.py b/src/darker/__main__.py index 117bdb00e..bff3c6a0d 100644 --- a/src/darker/__main__.py +++ b/src/darker/__main__.py @@ -125,7 +125,7 @@ def _isort_and_blacken_single_file( # pylint: disable=too-many-arguments """ # 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 )