forked from Mirror/pmbootstrap
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:
parent
c797b30dfe
commit
c3b7a5f39e
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,10 @@ line-length=100
|
|||
target-version = "py310"
|
||||
|
||||
[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
|
||||
|
||||
[tool.ruff.lint.extend-per-file-ignores]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue