additional cleanup

This commit is contained in:
Matt Troutman 2024-10-02 13:53:56 -05:00
parent 689ed19245
commit a12912b3bf
No known key found for this signature in database
2 changed files with 10 additions and 8 deletions

View file

@ -1,8 +1,9 @@
import os
import time
from fileinput import filename
repo_location = '/Users/fishy/custom_fonts'
font_location = '/Users/fishy/custom_fonts/font_files'
font_location = f'{repo_location}/font_files'
bad_phrases = [' Free',
'-medium',

View file

@ -1,10 +1,11 @@
import cleanup
import os
if __name__ == '__main__':
## Clean up git repository
#Reset and remove untracked files
os.system("git reset --hard")
os.system("git clean -fdx")
cleanup.remove_ds_store_files()
cleanup.remove_setup_complete_files()
cleanup.remove_empty_folders()
# Clean up git repository
os.system(f"cd {cleanup.repo_location}") # Pull the latest changes from the remote repository
os.system("git reset --hard main") # Reset the repository to the 'main' branch, discarding all local changes
os.system("git clean -fdx") # Remove all untracked files and directories, including ignored files
cleanup.remove_ds_store_files() # Remove .DS_Store files from the repository
cleanup.remove_setup_complete_files() # Remove setup complete files from the repository
cleanup.remove_empty_folders() # Remove empty folders from the repository