Fix failing tests (#18645)
Fixup of #18638
#18638 introduced an update to python-markdown, which was not captured in uv.lock.
The uv environment mismatch caused pre-commit checks to fail, including the translation comment check separately.
The latest pypi entry doesn't seem to capture the license correctly, so our license check filtering needed to be updated too