mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Fixed D204,D205,D209,D400
This commit is contained in:
parent
32754b4a54
commit
70704a105f
1 changed files with 7 additions and 3 deletions
|
@ -6,8 +6,8 @@ from slpkg.utilities import Utilities
|
|||
|
||||
|
||||
class Requires:
|
||||
"""Creates a tuple of dependencies with
|
||||
the right order to install."""
|
||||
"""Create a tuple with package dependencies."""
|
||||
|
||||
__slots__ = (
|
||||
'data', 'name', 'flags', 'utils', 'option_for_resolve_off'
|
||||
)
|
||||
|
@ -21,7 +21,10 @@ class Requires:
|
|||
('-O', '--resolve-off'), flags)
|
||||
|
||||
def resolve(self) -> tuple:
|
||||
"""Resolve the dependencies."""
|
||||
"""Resolve the dependencies.
|
||||
|
||||
Return package dependencies in the right order.
|
||||
"""
|
||||
dependencies: tuple = ()
|
||||
|
||||
if not self.option_for_resolve_off:
|
||||
|
@ -40,6 +43,7 @@ class Requires:
|
|||
|
||||
def remove_deps(self, requires: list) -> list:
|
||||
"""Remove requirements that not in the repository.
|
||||
|
||||
Args:
|
||||
requires (list): List of requires.
|
||||
|
||||
|
|
Loading…
Reference in a new issue