File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515class 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
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 88class 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
1414class ArchiveInfo (BaseModel ):
You can’t perform that action at this time.
0 commit comments