chore: move to Ruff and add rules (#4483)

35 files changed