ska-sa / spead2

Library for the Streaming Protocol for Exchange of Astronomical Data (SPEAD)
http://spead2.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
23 stars 14 forks source link

Move mypy configuration into pyproject.toml #242

Closed bmerry closed 1 year ago

bmerry commented 1 year ago

This keeps all the static checkers (isort, black, mypy) together, except for flake8 which refuses to use pyproject.

bmerry commented 1 year ago

ruff has near-parity with flake8 and uses pyproject.toml, IIRC.

Hmm, tempting actually. Not that I particularly need flake8 to be fast - it's mypy that takes the time in pre-commit.

james-smith-za commented 1 year ago

The other advantage is that ruff implements the functionality of isort and pydocstyle (according to this ). In time it may end up able to replace black as well.

Probably no action required for the time being but it's something to keep in mind for later on if you're bored. I've used it a little bit but I can't say I've done an extensive comparison with what we currently use.