chore: add "I", "TID", "Q", and "COM" rules to ruff config #5150
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Step 2 of 3+x, as detailed in #5145
This PR currently includes the commit of step 1, which will be removed by rebasing once #5149 got merged.Actual changes of this PR:
All code changes in the python modules were automated, with only a few manual changes, e.g. where code-style broke due to the added trailing comma (test_twitch.py), or the removal of superfluous noqa annotations. The "COM" rules also haven't updated everything, e.g. the facebook plugin, but that would require rewriting some stuff, which shouldn't be done here.
Step 3 will add the commit IDs of this PR's changes to
.git-blame-ignore-revs, so these automated changes don't get included in any blame views, which is distracting and unnecessary for these kinds of trivial changes.Any following PRs in regards to ruff will be new linting rules with code changes which are non-trivial, like code refactorings.