Run flake8 for general code and style cleanup
This commit is contained in:
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user