pyproject.toml: Enable most RUF checks (MR 2525)

These seem pretty useful to me. I ignored RUF021 since it seems a bit
silly to me and I didn't see the point in fixing the one violation of it
that we have in the code, but if you're reading this in the future and
want to do so be my guest, I don't really care either way.
This commit is contained in:
Newbyte 2025-01-08 00:32:47 +01:00 committed by Oliver Smith
parent c797b30dfe
commit c3b7a5f39e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -34,7 +34,10 @@ line-length=100
target-version = "py310" target-version = "py310"
[tool.ruff.lint] [tool.ruff.lint]
extend-select = ["CPY001", "UP"] # RUF021: Could be fixed if someone cares about this.
# RUF052: Needs a lot of changes, feel free to fix and then remove this ignore.
extend-ignore = ["RUF021", "RUF052"]
extend-select = ["CPY001", "RUF", "UP"]
preview = true preview = true
[tool.ruff.lint.extend-per-file-ignores] [tool.ruff.lint.extend-per-file-ignores]