Switch to ruff for formatting and use codespell and docformatter (#261)

17 files changed