Skip to content

Commit 2a163d1

Browse files
committed
fix: Allow adding .sql files to pipeline archive
1 parent fbde000 commit 2a163d1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openhexa/cli/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,9 @@ def generate_zip_file(pipeline_directory_path: str | Path) -> io.BytesIO:
583583
# We are in a virtual environment
584584
excluded_paths.append(path.parent.parent) # ./<venv>/bin/python -> ./<venv>
585585

586-
if path.suffix not in (".py", ".ipynb", ".txt", ".md", ".R", ".r"):
586+
if not path.suffix:
587+
continue
588+
if path.suffix.lower() not in (".py", ".ipynb", ".txt", ".md", ".r", ".sql"):
587589
continue
588590

589591
files.append(path)

0 commit comments

Comments
 (0)