astral-sh / ruff

An extremely fast Python linter and code formatter, written in Rust.
https://docs.astral.sh/ruff
MIT License
29.19k stars 950 forks source link

flake8-tkinter plugin #6409

Open benjamin-kirkbride opened 11 months ago

benjamin-kirkbride commented 11 months ago

Would be great to have this added to the list of rules :)

https://pypi.org/project/flake8-tkinter/

rdbende commented 11 months ago

Hi, author of flake8-tkinter here!

Unfortunately I can't help implementing this, but I would love to see it in Ruff 😍 I have a few projects where we use both Ruff for its speed and flake8 because I need the extra tkinter-related checks. It may come in handy for other projects as well.

To help prevent false-positives, flake8-tkinter checks for tkinter imports and only runs if there are any. There are currently no known false positives, however there are important checks missing for well-known but common mistakes and best practices.