Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bdovaz committed Nov 23, 2023
1 parent 63d0f70 commit 3daaf37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion megalinter/utilstest.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,12 +626,17 @@ def test_linter_format_fix(linter, test_self):

files = glob.iglob(search_glob_pattern, recursive=True)

file_extensions = linter.file_extensions

if len(linter.test_format_fix_file_extensions) > 0:
file_extensions = linter.test_format_fix_file_extensions

filtered_files = utils.filter_files(
all_files=files,
filter_regex_include=None,
filter_regex_exclude=[linter.test_format_fix_regex_exclude],
file_names_regex=["_fix_"],
file_extensions=linter.test_format_fix_file_extensions,
file_extensions=file_extensions,
ignored_files=[],
ignore_generated_files=False,
)
Expand Down

0 comments on commit 3daaf37

Please sign in to comment.