Run flake8 for general code and style cleanup

This commit is contained in:
Eric Torres
2022-01-10 19:53:46 -08:00
parent e60972fc73
commit 8dae78c735
5 changed files with 7 additions and 12 deletions

View File

@ -10,11 +10,8 @@ Dependencies
# Module Imports
import argparse
import shutil
import subprocess
import file_scripts.fzf as fzf
import file_scripts.editor as editor
import file_scripts.search as search
import file_scripts.error as error
@ -36,7 +33,7 @@ E_TEMP_DIR_NON_EXIST = 1
# ========== Main Script ==========
if __name__ == "__main__":
if platform == "win32":
sys.exit(error.E_INTERRUPT)
exit(error.E_INTERRUPT)
parser = argparse.ArgumentParser()
parser.add_argument(

View File

@ -29,7 +29,7 @@ ETC_DIR = "/etc"
if __name__ == "__main__":
# This script doesn't support Windows
if platform == "win32":
sys.exit(error.E_INTERRUPT)
exit(error.E_INTERRUPT)
parser = argparse.ArgumentParser()
parser.add_argument(

View File

@ -141,7 +141,7 @@ if __name__ == "__main__":
files = sorted(files)
if files == []:
print(f"No results found, exiting")
print("No results found, exiting")
exit(error.E_NO_RESULTS)
# Pretty print all filenames