Skip to content

Commit 0a18f71

Browse files
committed
feat: expand file patterns for modelfile ignore and docs
Add support for additional file types: - Include .patch files in ignored patterns - Add .pdf files to documentation patterns Signed-off-by: Zhao Chen <zhaochen.zju@gmail.com>
1 parent eb49946 commit 0a18f71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/modelfile/modelfile.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,15 @@ var (
150150
"*.py", // Python source files
151151
"*.sh", // Shell scripts
152152
"*.ipynb", // Jupyter notebooks
153+
"*.patch", // Patch files
153154
}
154155

155156
// Doc file patterns - supported documentation files
156157
docFilePatterns = []string{
157158
// Documentation files
158159
"*.txt", // Text files
159160
"*.md", // Markdown documentation
161+
"*.pdf", // PDF files
160162
"LICENSE*", // License files
161163
"README*", // Project documentation
162164
"SETUP*", // Setup instructions

0 commit comments

Comments
 (0)