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>