Merge pull request #16766 from nvaccess/applyRuff2
Lint the repository with Ruff
This is a follow up for #16751
Must be merge commit not squash merge
Using #16751, the following commands were applied:
ruff check --fix to apply automatic fixes
ruff check --add-noqa to add no-qa comments to all lint failures, so that issues that can't be automatically fixed don't trigger future failures