Merge pull request #186 from kjd/format-code

Format code using `ruff`