Add Ruff configuration
This is about Ruff: https://github.com/astral-sh/ruff
Both @boyska and I independently tried to do that recently:
I've removed boyska's attempt with this explanation:
But then I removed that commit, because Ruff won't merge settings from multiple config files: instead it'll pick the first one it finds (in this case, tails/tails' pyproject.toml
) and stop there. So I figured that if I wanted to add any Ruff config to tails/tails' pyproject.toml
, this would require either encoding some sort of code style policy in there (which felt like a too big can of worms), or forcing ourselves to use Ruff's defaults (which does not enable much compared to the tons of awesome things this tool can do).
So, sorry, but I don't think this qualifies for a simple quick last minute addition to this MR, because it causes a regression: it would make Ruff less useful for me than it currently is.