Skip to content

Commit cd02d86

Browse files
committed
fix typos
1 parent e82bc4f commit cd02d86

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/ewoks/_requirements/managers/utils/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
class BaseManager:
1616
"""Defines the interface all package managers must implement.
1717
18-
If `MyManager` is an impementation of this interface then
19-
to get the Ewoks workflow requirements like this:
18+
If `MyManager` is an implementation of this interface then
19+
Ewoks workflow requirements can be obtained like this:
2020
2121
.. code-block:: python
2222
@@ -28,7 +28,7 @@ class BaseManager:
2828
.. code-block:: python
2929
3030
manager = MyManager()
31-
install_requirements.install_requirements(requirements)
31+
manager.install_requirements(requirements)
3232
"""
3333

3434
NAME = NotImplemented

src/ewoks/_requirements/managers/utils/detect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _detect_manager() -> Optional[BaseManager]:
6666
# Infer most likely package manager
6767
counts = _installer_distribution_count()
6868
if set(counts) & set(available_managers):
69-
# Use the number of installed distibutions as the score
69+
# Use the number of installed distributions as the score
7070
crit = "distribution count"
7171
scores = {name: counts.get(name, -1) for name in available_managers}
7272
else:

src/ewoks/_requirements/metadata/gather/installed/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _distribution_from_metadata(dist: metadata.Distribution) -> Distribution:
5252
commit_id = vcs_info.get("commit_id")
5353
if commit_id:
5454
git_info = GitInfo(
55-
commit=commit_id, remote=url, uncomitted_changes=False
55+
commit=commit_id, remote=url, uncommitted_changes=False
5656
)
5757
has_info = True
5858

src/ewoks/_requirements/metadata/gather/installed/git.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ def git_info_from_path(path: Path) -> Optional[GitInfo]:
1616
return None
1717

1818
try:
19-
uncomitted_changes = bool(_git(["status", "--porcelain"], path))
19+
uncommitted_changes = bool(_git(["status", "--porcelain"], path))
2020
except Exception:
21-
uncomitted_changes = False
21+
uncommitted_changes = False
2222

2323
remote_name = _find_remote_for_commit(path, commit)
2424
if remote_name:
@@ -30,7 +30,7 @@ def git_info_from_path(path: Path) -> Optional[GitInfo]:
3030
remote_url = None
3131

3232
return GitInfo(
33-
commit=commit, remote=remote_url, uncomitted_changes=uncomitted_changes
33+
commit=commit, remote=remote_url, uncommitted_changes=uncommitted_changes
3434
)
3535

3636

src/ewoks/_requirements/metadata/pip_freeze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def freeze_distribution(
5252
warnings.append(warning)
5353
lines.append(f"# {warning}")
5454

55-
if dist.git.uncomitted_changes:
55+
if dist.git.uncommitted_changes:
5656
warning = warning_fmt.format(
5757
dist.name, dist.git.commit, "has uncommited changes"
5858
)

src/ewoks/_requirements/models/distro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class GitInfo(BaseModel):
99
commit: str
1010
remote: Optional[str] = None
11-
uncomitted_changes: bool = Field(default=False, description="Uncommited changes")
11+
uncommitted_changes: bool = Field(default=False, description="Uncommited changes")
1212

1313

1414
class ArchiveInfo(BaseModel):

0 commit comments

Comments
 (0)