Skip to content

Commit 75b5cd3

Browse files
committed
Address current codespell errors
1 parent 5160071 commit 75b5cd3

File tree

9 files changed

+17
-9
lines changed

9 files changed

+17
-9
lines changed

NEWS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Improved Documentation
304304

305305
- Cross-reference the ``--python`` flag from the ``--prefix`` flag,
306306
and mention limitations of ``--prefix`` regarding script installation. (`#11775 <https://github.com/pypa/pip/issues/11775>`_)
307-
- Add SECURITY.md to make the policy offical. (`#11809 <https://github.com/pypa/pip/issues/11809>`_)
307+
- Add SECURITY.md to make the policy official. (`#11809 <https://github.com/pypa/pip/issues/11809>`_)
308308
- Add username to Git over SSH example. (`#11838 <https://github.com/pypa/pip/issues/11838>`_)
309309
- Quote extras in the pip install docs to guard shells with default glob
310310
qualifiers, like zsh. (`#11842 <https://github.com/pypa/pip/issues/11842>`_)

src/pip/_internal/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def _get_cache_path_parts(self, link: Link) -> List[str]:
4444
"""Get parts of part that must be os.path.joined with cache_dir"""
4545

4646
# We want to generate an url to use as our cache key, we don't want to
47-
# just re-use the URL because it might have other items in the fragment
47+
# just reuse the URL because it might have other items in the fragment
4848
# and we don't care about those.
4949
key_parts = {"url": link.url_without_fragment}
5050
if link.hash_name is not None and link.hash is not None:

src/pip/_internal/resolution/resolvelib/candidates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ def _warn_invalid_extras(
520520
def _calculate_valid_requested_extras(self) -> FrozenSet[str]:
521521
"""Get a list of valid extras requested by this candidate.
522522
523-
The user (or upstream dependant) may have specified extras that the
523+
The user (or upstream dependent) may have specified extras that the
524524
candidate doesn't support. Any unsupported extras are dropped, and each
525525
cause a warning to be logged here.
526526
"""

src/pip/_internal/utils/_jaraco_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def join_continuation(lines):
8888
['foobarbaz']
8989
9090
Not sure why, but...
91-
The character preceeding the backslash is also elided.
91+
The character preceding the backslash is also elided.
9292
9393
>>> list(join_continuation(['goo\\', 'dly']))
9494
['godly']

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def virtualenv_template(
495495
dist_info, venv.site / dist_info.name, dirs_exist_ok=True, symlinks=True
496496
)
497497
# Create placeholder ``easy-install.pth``, as several tests depend on its
498-
# existance. TODO: Ensure ``tests.lib.TestPipResult.files_updated`` correctly
498+
# existence. TODO: Ensure ``tests.lib.TestPipResult.files_updated`` correctly
499499
# detects changed files.
500500
venv.site.joinpath("easy-install.pth").touch()
501501

tests/functional/test_install.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ def test_install_builds_wheels(script: PipTestEnvironment, data: TestData) -> No
17311731
assert "Building wheel for wheelb" in str(res), str(res)
17321732
assert "Failed to build wheelbroken" in str(res), str(res)
17331733
# Wheels are built for local directories, but not cached.
1734-
assert "Building wheel for requir" in str(res), str(res)
1734+
assert "Building wheel for require" in str(res), str(res)
17351735
# into the cache
17361736
assert wheels != [], str(res)
17371737
assert wheels == [
@@ -1754,7 +1754,7 @@ def test_install_no_binary_builds_wheels(
17541754
)
17551755
# Wheels are built for all requirements
17561756
assert "Building wheel for wheelb" in str(res), str(res)
1757-
assert "Building wheel for requir" in str(res), str(res)
1757+
assert "Building wheel for require" in str(res), str(res)
17581758
assert "Building wheel for upper" in str(res), str(res)
17591759
# Wheelbroken failed to build
17601760
assert "Failed to build wheelbroken" in str(res), str(res)

tests/functional/test_new_resolver_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_new_resolver_install_user_satisfied_by_global_site(
2727
script: PipTestEnvironment,
2828
) -> None:
2929
"""
30-
An install a matching version to user site should re-use a global site
30+
An install a matching version to user site should reuse a global site
3131
installation if it satisfies.
3232
"""
3333
create_basic_wheel_for_package(script, "base", "1.0.0")

tests/unit/test_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ def test_collect_sources__non_existing_path() -> None:
911911
index_url="ignored-by-no-index",
912912
extra_index_urls=[],
913913
no_index=True,
914-
find_links=[os.path.join("this", "doesnt", "exist")],
914+
find_links=[os.path.join("this", "does", "not", "exist")],
915915
),
916916
)
917917
sources = collector.collect_sources(

tools/codespell-ignore.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# An actual English word
2+
lousily
3+
# A contributor first name
4+
wil
5+
# Codebase variable or class names
6+
uptodate
7+
afile
8+
failer

0 commit comments

Comments
 (0)