From 53d051d3ae76e3608be6ddcae81afb61238e1a64 Mon Sep 17 00:00:00 2001 From: Bobby Date: Sat, 5 Nov 2022 10:26:35 -0400 Subject: fix: Fixed Scripts --- setup.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 8e69692..57acedd 100644 --- a/setup.py +++ b/setup.py @@ -8,8 +8,6 @@ import os import subprocess import sys -import inquirer - logger.basicConfig(stream=sys.stdout, level=logger.DEBUG) @@ -28,9 +26,17 @@ class Setup: logger.info("Virtual environment activated.") logger.info("Installing requirements...") self.shell_run(self.QUIET_INSTALL) + self.install_pip("black") + self.install_pip("isort") self.git() + def install_pip(self, package_name): + logger.info(f"Installing {package_name}...") + self.shell_run(f"pip install -q {package_name}") + def git(self): + import inquirer + username = self.shell_run("git config --global user.name") if username == "": questions = [ -- cgit v1.2.3