ref: Add ruff rules TRY3xx (#4098)

Add ruff rules TRY3xx
This commit is contained in:
Christophe Bornet 2024-10-14 16:14:53 +02:00 • committed by GitHub
commit c7d80f3bc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 681 additions and 563 deletions

View file

@ -52,6 +52,7 @@ ignore = [
"RUF012", # Pydantic models are currently not well detected. See https://github.com/astral-sh/ruff/issues/13630
"TD002", # Missing author in TODO
"TD003", # Missing issue link in TODO
"TRY301", # A bit too harsh (Abstract `raise` to an inner function)
# Rules that are TODOs
"ANN",
@ -62,7 +63,6 @@ ignore = [
"N",
"S",
"SLF",
"TRY3",
]
[tool.ruff.lint.per-file-ignores]