servo/python/tidy
Jerens Lensun c738bbc41c
mach: Make test-tidy line length check Unicode-aware (#38335)
Currently, our implementation for each line-checking function reads the
file as bytes, so we need to properly decode each line to UTF-8 before
evaluating it. This ensures it is counted as a string and not as bytes

Testing: I tested by changing the comment like the issue above and it
not give an error
Fixes: #38237

Signed-off-by: Jerens Lensun <jerensslensun@gmail.com>
2025-07-29 14:46:32 +00:00
..
tests Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
__init__.py Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
licenseck.py Convert tidy to a non-egg Python package 2023-06-15 13:10:06 +02:00
linting_report.py Mach: add type check on python tidy folder (#38043) 2025-07-17 07:35:11 +00:00
test.py Use ruff to enforce python code formatting (#37117) 2025-05-26 11:54:43 +00:00
tidy.py mach: Make test-tidy line length check Unicode-aware (#38335) 2025-07-29 14:46:32 +00:00