mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 10:34:06 +02:00
🤖 format everything with pre-commit by stirlingbot (#5462)
Auto-generated by [create-pull-request][1] with **stirlingbot** [1]: https://github.com/peter-evans/create-pull-request Signed-off-by: stirlingbot[bot] <stirlingbot[bot]@users.noreply.github.com> Co-authored-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com>
parent
8d6c8cbc11
commit
b7041cfc78
@@ -198,7 +198,9 @@ def check_for_differences(reference_file, file_list, branch, actor):
|
|||||||
# Verify that file is within the expected directory
|
# Verify that file is within the expected directory
|
||||||
if not absolute_path.is_relative_to(base_dir):
|
if not absolute_path.is_relative_to(base_dir):
|
||||||
has_differences = True
|
has_differences = True
|
||||||
report.append(f"\n⚠️ Unsafe file found: `{locale_dir}/{basename_current_file}`\n\n---\n")
|
report.append(
|
||||||
|
f"\n⚠️ Unsafe file found: `{locale_dir}/{basename_current_file}`\n\n---\n"
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Verify file size before processing
|
# Verify file size before processing
|
||||||
@@ -212,7 +214,10 @@ def check_for_differences(reference_file, file_list, branch, actor):
|
|||||||
if basename_current_file == basename_reference_file and locale_dir == "en-GB":
|
if basename_current_file == basename_reference_file and locale_dir == "en-GB":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if file_normpath.suffix != ".toml" or basename_current_file != "translation.toml":
|
if (
|
||||||
|
file_normpath.suffix != ".toml"
|
||||||
|
or basename_current_file != "translation.toml"
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
only_reference_file = False
|
only_reference_file = False
|
||||||
|
|||||||
Reference in New Issue
Block a user