Add Ruff

Add Ruff and format the code. Also, add it to the CI.