vale-pre-commit: Fix Windows path matching for changed-line filtering


Use cygpath to convert the Git Bash REPO_ROOT to a native Windows path
before passing it to the Python helper, and switch to pathlib throughout:
pathlib.Path.drive skips the drive-letter colon in Vale's output so
parse_alert finds the right field separator, and pathlib.Path.resolve()
produces a canonical path on both sides so filter_alerts can match Vale
alert paths against the changed-line regions dict. No-op on macOS/Linux.

Change-Id: I5b1037c01c535229df0ab7a3eceee6c2647840a5
Reviewed-by: Jerome Pasion <jerome.pasion@qt.io>
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit0baf597cd383732b02692e9fc470ee0490a96a87
parent3744f3ad06cf29e71a61834ef0fa1284d6b14b47
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>
commit timeWed, 15 Apr 2026 09:49:54 +0000