-
Notifications
You must be signed in to change notification settings - Fork 40
Description
We should consider using ruff as alternative to
- black (formatting) and
- isort (sorting imports and detect inline imports)
As AI coding tools tend to place inline imports into the code we need some kind of pre commit hook to avoid this pattern to pure into the codebase.
For this we would need an additional detector (like isort) in the dev environment. At the same time, ruff could offer both functionality.
I would propos to use ruff as it can handle formatting and import sorting and inline import detection+handling.
This would avoid to install additional different tools. We could do it with one simple tool.
Additionally ruff is super fast, is heavily used by the community and there is a VSCode plugin, so we have it directly in the VSCode IDE :-)
more information about ruff here: https://docs.astral.sh/ruff/formatter/
I could adapt the make process and add documentation as a PR.