Skip to content

Commit

Permalink
Automatically remove deprecated files
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
lubosmj committed Jul 1, 2024
1 parent c4a2504 commit b87ed3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin-template
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ def check_for_deprecated_files(plugin_root_dir, sections):
for fp in DEPRECATED_FILES.get(section, []):
path = Path(plugin_root_dir).joinpath(fp)
if path.exists():
print(f"Found deprecated file: '{path}'. It is recommended you delete this file.")
path.unlink()
print(f"Removed deprecated file: '{path}'.")
files_found = True

if not files_found:
Expand Down

0 comments on commit b87ed3b

Please sign in to comment.