You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Opening a new issue to continue the discussion from #2972 which will be closed by #3022)
I went through all the PyCharm inspections, filtered those I deemed implementable in a non-type-aware linter, and categorized them by whether they have Ruff or PyLint counterparts, mostly by running Ruff and PyLint directly on the examples provided in the PyCharm Settings panel.
There were five left over, which might merit consideration for inclusion as RUF rules.
PyCharm inspections not currently covered by Ruff or PyLint
I'm looking forward to see those checks in ruff!
I'll expand here some moments regarding F811 and similar check in pycharm.
In the following example all redeclarations were highlighted by pycharm, but ruff alerts only on imports and function/class definitions. Variable redeclaration without usage passes the check.
importosimportsysimportos# ruff alerts F811deffoo():
passdeffoo(): # ruff alerts F811passclassFoo:
passclassFoo: # ruff alerts F811passclassBar:
x=10x=20# No alertBAR="bar"BAR="baz"# No alert
It would be great to enable checking for variables too.
(Opening a new issue to continue the discussion from #2972 which will be closed by #3022)
I went through all the PyCharm inspections, filtered those I deemed implementable in a non-type-aware linter, and categorized them by whether they have Ruff or PyLint counterparts, mostly by running Ruff and PyLint directly on the examples provided in the PyCharm Settings panel.
There were five left over, which might merit consideration for inclusion as RUF rules.
PyCharm inspections not currently covered by Ruff or PyLint
Covered by Ruff or PyLint
The text was updated successfully, but these errors were encountered: