Ruff 0.8.0 ignores ambiguous-variable-name (E741) automatically in pyi files. This prompted me to look at other rules I disable specifically for .pyi files and found the following which I think should apply in all cases:
I haven't gone back and validated if these still trigger in stub files since I added them to our shared config, sorry if I tagged a rule that's already ignored.
Ruff 0.8.0 ignores
ambiguous-variable-name (E741)automatically in pyi files. This prompted me to look at other rules I disable specifically for.pyifiles and found the following which I think should apply in all cases:PLR0904https://docs.astral.sh/ruff/rules/too-many-public-methods/PLR0913https://docs.astral.sh/ruff/rules/too-many-arguments/PLR0917https://docs.astral.sh/ruff/rules/too-many-positional-arguments/PLW3201https://docs.astral.sh/ruff/rules/bad-dunder-method-name/SLOThttps://docs.astral.sh/ruff/rules/#flake8-slots-slotFBThttps://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbtAhttps://docs.astral.sh/ruff/rules/#flake8-builtins-aPLC2701https://docs.astral.sh/ruff/rules/import-private-name/I haven't gone back and validated if these still trigger in stub files since I added them to our shared config, sorry if I tagged a rule that's already ignored.