single-cell-data / SOMA

A flexible and extensible API for annotated 2D matrix data stored in multiple underlying formats.
MIT License
70 stars 9 forks source link

Add ruff (a fast Python linter) to pre-commit #91

Closed thetorpedodog closed 1 year ago

thetorpedodog commented 1 year ago

Shamelessly stolen from the TileDB SOMA repository [1], this change adds ruff to the pre-commit workflow.

Also does some minor changes to placate ruff so we start off with a completely clean slate.

[1] https://github.com/single-cell-data/TileDB-SOMA/pull/751

(cc @gsakkis)

gsakkis commented 1 year ago

Btw @ihnorton pointed out that ruff can subsume isort, you may remove the latter if you want.