From 18002a123899f814a1f8bf4b0a18c94dd79c2521 Mon Sep 17 00:00:00 2001 From: Stanislav Pankevich Date: Sun, 23 Nov 2025 16:27:36 +0100 Subject: [PATCH] chore(.gitattributes): remove the LF normalization for test files This reverts #2565. It should be possible because we found the underlying issue in the lark grammar which broke the integration test on Windows. See #2575. --- .gitattributes | 1 - strictdoc/commands/manage_autouid_command.py | 1 + tests/end2end/__init__.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 8150eb3f2..000000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -tests/** text=auto eol=lf diff --git a/strictdoc/commands/manage_autouid_command.py b/strictdoc/commands/manage_autouid_command.py index 299ff57a1..ba9269aec 100644 --- a/strictdoc/commands/manage_autouid_command.py +++ b/strictdoc/commands/manage_autouid_command.py @@ -176,6 +176,7 @@ def _rewrite_source_file( ] # This is important for Windows. Otherwise, the hash key will be calculated incorrectly. + instance_bytes = instance_bytes.replace(b"\r\n", b"\n") code = code.replace(b"\r\n", b"\n") hash_spdx_id = bytes(get_random_sha256(), encoding="utf8") diff --git a/tests/end2end/__init__.py b/tests/end2end/__init__.py index ea7a43c1b..1aef81102 100644 --- a/tests/end2end/__init__.py +++ b/tests/end2end/__init__.py @@ -1 +1 @@ -# Dummy comment +# Dummy comment.