Closed DimitriPapadopoulos closed 3 weeks ago
More generally, for ruff rules that implement the rules of flake8 plugins, just install the plugin:
B
→ flake8-bugbearPYI
-> flake8-pyiFor ruff rules that implement the rules of other tools, add the relevant tool to your test dependencies and add them to the CI jobs:
For ruff rules, you have no other choice than adding ruff to your setup:
RUF
→ ruffIf you do want to enforce many of these rules, I would recommend moving to ruff altogether.
I used
ruff --extend--select PYI
for this specific merge request. Ideally I should have usedruff --config 'line-length = 80' --extend--select PYI
instead of fixing possible line length issues after linting. Since you're using flake8, you just need to add to your test requirements the relevant plugin — in this case flake8-pyi.