Skip to content

Commit

Permalink
Pre-commit checks and function outputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Knucklessg1 committed May 9, 2024
1 parent 184498d commit 10391d8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions systems_manager/systems_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import subprocess
import os
import platform
from typing import List

import requests
import zipfile
import glob
Expand Down Expand Up @@ -238,7 +240,7 @@ def font(self):
os.remove(meslo_file_name)
os.remove(hack_file_name)

def theme(self):
def theme(self) -> None:
if self.operating_system == "Ubuntu":
install_dependencies_command = [
"sudo",
Expand Down Expand Up @@ -620,7 +622,7 @@ def run_command(self, command):
except subprocess.CalledProcessError as e:
print(e.output)

def get_operating_system(self):
def get_operating_system(self) -> str:
if "ubuntu" in str(self.version).lower() or "smp" in str(self.version).lower():
self.operating_system = "Ubuntu"
elif "windows" in str(self.system).lower() and (
Expand All @@ -629,13 +631,13 @@ def get_operating_system(self):
self.operating_system = "Windows"
return self.operating_system

def get_silent(self):
def get_silent(self) -> bool:
return self.silent

def set_silent(self, silent=False):
self.silent = silent

def get_applications(self):
def get_applications(self) -> List[str]:
return self.applications

def set_applications(self, applications):
Expand Down Expand Up @@ -940,7 +942,7 @@ def set_applications(self, applications):
]
)

def get_features(self):
def get_features(self) -> List[str]:
return self.windows_features

def set_features(self, features):
Expand Down

0 comments on commit 10391d8

Please sign in to comment.