Updated for length require

This commit is contained in:
Dimitris Zlatanidis 2023-05-19 17:24:02 +03:00
parent 789c328faf
commit 460c3538d5

View file

@ -45,9 +45,6 @@ class Tracking(Configs):
self.view_the_main_package()
self.view_no_dependencies()
if self.package_requires:
self.require_length: int = max(len(name) for name in self.package_requires)
for require in self.package_requires:
self.count_requires += 1
@ -100,6 +97,8 @@ class Tracking(Configs):
def set_package_requires(self, package: str) -> None:
self.package_requires: tuple = self.data[package]['requires'].split()
if self.package_requires:
self.require_length: int = max(len(name) for name in self.package_requires)
def view_summary_of_tracking(self, package: str) -> None:
print(f'\n{self.grey}{self.count_requires} dependencies for {package}{self.endc}\n')