patch_extension_skip_types

This commit is contained in:
mrT23
2024-08-20 11:33:56 +03:00
parent b7eb6be5a0
commit 2d5b060168
2 changed files with 4 additions and 4 deletions

View File

@ -19,9 +19,9 @@ def extend_patch(original_file_str, patch_str, patch_extra_lines_before=0,
return ""
# skip patches
skip_types = get_settings().config.skip_types #[".md",".txt"]
if skip_types:
if any([filename.endswith(skip_type) for skip_type in skip_types]):
patch_extension_skip_types = get_settings().config.skip_types #[".md",".txt"]
if patch_extension_skip_types:
if any([filename.endswith(skip_type) for skip_type in patch_extension_skip_types]):
return patch_str
# dynamic context settings