From 12adec901372570df95d23187c1499185217ff8f Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Sun, 19 Sep 2021 06:18:07 -0400 Subject: [PATCH] fix: typos in multiple locations (#4483) This commit fixes typographical errors in the CHANGELOG, docs folder, poetry package, and the tests. This was done via the codespell utility, which can be found at https://github.com/codespell-project/codespell --- CHANGELOG.md | 4 ++-- docs/cli.md | 2 +- docs/repositories.md | 2 +- poetry/json/schemas/poetry-schema.json | 2 +- poetry/repositories/pypi_repository.py | 2 +- poetry/utils/extras.py | 2 +- tests/installation/test_pip_installer.py | 2 +- tests/utils/fixtures/setups/pyyaml/setup.py | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5848845e9ea..8967159ebdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -971,7 +971,7 @@ commands in project subdirectories. - Improved dependency resolution to avoid unnecessary operations. - Improved dependency resolution speed. - Improved CLI reactivity by deferring imports. -- License classifer is not automatically added to classifers. +- License classifier is not automatically added to classifiers. ### Fixed @@ -1016,7 +1016,7 @@ commands in project subdirectories. ### Changed -- Changed how wilcard constraints are handled. +- Changed how wildcard constraints are handled. ### Fixed diff --git a/docs/cli.md b/docs/cli.md index 1886fa8a945..6abd517c270 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -186,7 +186,7 @@ poetry install --extras "mysql pgsql" poetry install -E mysql -E pgsql ``` -By default `poetry` will install your project's package everytime you run `install`: +By default `poetry` will install your project's package every time you run `install`: ```bash $ poetry install diff --git a/docs/repositories.md b/docs/repositories.md index 9dd376a4918..889b961c4ed 100644 --- a/docs/repositories.md +++ b/docs/repositories.md @@ -80,7 +80,7 @@ Keyring support is enabled using the [keyring library](https://pypi.org/project/ Poetry will fallback to Pip style use of keyring so that backends like Microsoft's [artifacts-keyring](https://pypi.org/project/artifacts-keyring/) get a change to retrieve valid credentials. It will need to be properly installed into Poetry's virtualenv, -preferrably by installing a plugin. +preferably by installing a plugin. If you are letting Poetry manage your virtual environments you will want a virtualenv seeder installed in Poetry's virtualenv that installs the desired keyring backend diff --git a/poetry/json/schemas/poetry-schema.json b/poetry/json/schemas/poetry-schema.json index e94b90d28cc..41966e9e1c2 100644 --- a/poetry/json/schemas/poetry-schema.json +++ b/poetry/json/schemas/poetry-schema.json @@ -59,7 +59,7 @@ }, "classifiers": { "type": "array", - "description": "A list of trove classifers." + "description": "A list of trove classifiers." }, "packages": { "type": "array", diff --git a/poetry/repositories/pypi_repository.py b/poetry/repositories/pypi_repository.py index 1c7b7be316a..5a440d70d36 100644 --- a/poetry/repositories/pypi_repository.py +++ b/poetry/repositories/pypi_repository.py @@ -341,7 +341,7 @@ def _get_info_from_urls(self, urls: Dict[str, List[str]]) -> "PackageInfo": # Checking wheels first as they are more likely to hold # the necessary information if "bdist_wheel" in urls: - # Check fo a universal wheel + # Check for a universal wheel wheels = urls["bdist_wheel"] universal_wheel = None diff --git a/poetry/utils/extras.py b/poetry/utils/extras.py index 37f04681eed..95d0fa51c3f 100644 --- a/poetry/utils/extras.py +++ b/poetry/utils/extras.py @@ -44,7 +44,7 @@ def get_extra_package_names( def _extra_packages(package_names: Iterable[str]) -> Iterator[str]: """Recursively find dependencies for packages names""" - # for each extra pacakge name + # for each extra package name for package_name in package_names: # Find the actual Package object. A missing key indicates an implicit # dependency (like setuptools), which should be ignored diff --git a/tests/installation/test_pip_installer.py b/tests/installation/test_pip_installer.py index 20fc9d0a9d3..3ac26be4b38 100644 --- a/tests/installation/test_pip_installer.py +++ b/tests/installation/test_pip_installer.py @@ -65,7 +65,7 @@ def test_requirement_source_type_url(): "foo", "0.0.0", source_type="url", - source_url="https://somehwere.com/releases/foo-1.0.0.tar.gz", + source_url="https://somewhere.com/releases/foo-1.0.0.tar.gz", ) result = installer.requirement(foo, formatted=True) diff --git a/tests/utils/fixtures/setups/pyyaml/setup.py b/tests/utils/fixtures/setups/pyyaml/setup.py index 5285386ba55..79ccc813263 100644 --- a/tests/utils/fixtures/setups/pyyaml/setup.py +++ b/tests/utils/fixtures/setups/pyyaml/setup.py @@ -12,7 +12,7 @@ allow to represent an arbitrary Python object. PyYAML is applicable for a broad range of tasks from complex -configuration files to object serialization and persistance.""" +configuration files to object serialization and persistence.""" AUTHOR = "Kirill Simonov" AUTHOR_EMAIL = "xi@resolvent.net" LICENSE = "MIT"