Skip to content

Commit

Permalink
search CI and skip bash
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Dec 7, 2023
1 parent cc48746 commit 1c1052c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CI/check_unused_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def main():
exclude_dirs = (
"Scripts",
"thirdparty",
"CI",
"git",
"cmake",
".git",
Expand Down Expand Up @@ -79,6 +78,7 @@ def main():
".md",
".rst",
)
suffix_bash = (".sh")
suffix_other = (
"",
".csv",
Expand All @@ -101,6 +101,7 @@ def main():
+ suffix_image
+ suffix_python
+ suffix_doc
+ suffix_bash
+ suffix_other
)

Expand Down Expand Up @@ -195,6 +196,10 @@ def main():
remove_cmd = "rm " + str(filepath)
os.system(remove_cmd)

# TODO should we make a catalogue for scripts?
elif filepath.suffix in suffix_bash:
continue

# Print the progress in place
progress = int(20 * processed_files / number_files)
sys.stdout.write("\r")
Expand Down

0 comments on commit 1c1052c

Please sign in to comment.