Get rid of remove_file() from post hook

This commit is contained in:
Nikita P. Shupeyko 2018-03-04 15:07:49 +03:00
parent 9f2f3b455f
commit afd3191038

View File

@ -25,11 +25,6 @@ except NotImplementedError:
PROJECT_DIR_PATH = os.path.realpath(os.path.curdir)
def remove_file(file_path):
if os.path.exists(file_path):
os.remove(file_path)
def remove_open_source_project_only_files():
file_names = [
'CONTRIBUTORS.txt',
@ -75,11 +70,11 @@ def remove_heroku_files():
'requirements.txt',
]
for file_name in file_names:
remove_file(os.path.join(PROJECT_DIR_PATH, file_name))
os.remove(os.path.join(PROJECT_DIR_PATH, file_name))
def remove_dotenv_file():
remove_file(os.path.join(PROJECT_DIR_PATH, '.env'))
os.remove(os.path.join(PROJECT_DIR_PATH, '.env'))
def remove_grunt_files():