[script] Make pre-commit and helpers work on Windows (#16260)

Co-authored-by: Jonathan Swoboda <swoboda1337@users.noreply.github.com>
This commit is contained in:
Jonathan Swoboda
2026-05-06 07:11:06 -05:00
committed by GitHub
co-authored by Jonathan Swoboda
parent 85f33978e7
commit 29db5fa4bb
3 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ def lint_ext_check(fname):
]
)
def lint_executable_bit(fname: Path) -> str | None:
ex = EXECUTABLE_BIT[str(fname)]
ex = EXECUTABLE_BIT[fname.as_posix()]
if ex != 100644:
return (
f"File has invalid executable bit {ex}. If running from a windows machine please "