Skip to content

Commit

Permalink
Merge pull request #96 from samsonjoyce/ignore_non_py_files
Browse files Browse the repository at this point in the history
ignore non .py files in versions dir
  • Loading branch information
ndamania00 authored Jan 14, 2025
2 parents 26f3468 + 4aa7bf9 commit 35232d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion liminal/migrate/revisions_timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def __init__(self, versions_dir_path: Path):
)
all_raw_revisions: list[Revision] = []
for file_path in versions_dir_path.iterdir():
all_raw_revisions.append(Revision.parse_from_file(file_path))
if file_path.is_file() and file_path.suffix == ".py":
all_raw_revisions.append(Revision.parse_from_file(file_path))
self.revisions_map = self.validate_revisions(all_raw_revisions)

def get_first_revision(self) -> Revision:
Expand Down

0 comments on commit 35232d6

Please sign in to comment.