Thanks for the hot tip. We’ve implemented ruff in the anvil ide.
Ruff comes with Black like auto formatting. (Alt + Shift + F).
It also has a linter. You’ll see some additional linting in the anvil IDE. We’re using a modest lint configuration which you can customise.
If you’d like to customise the ruff configuration then simply follow the Ruff docs. Add a pyproject.toml or ruff.toml to the root of you your anvil project. And next time you open the anvil ide the linter will follow your preferred configuration.