Introduce pre-commit and replace pylama by ruff
Pylama is no more supported and is not usable with new Python versions.
I propose here to replace it by Ruff (https://docs.astral.sh/ruff/) via pre-commit
Prerequisite for #11
Edited by Médéric de Verdilhac