Enable TRY in flake8 and ruff
This commit is contained in:
parent
1827e02f34
commit
57ac602612
1 changed files with 25 additions and 0 deletions
|
|
@ -122,6 +122,7 @@ dev = [
|
|||
"pep8-naming (>=0.15.1,<0.16.0)",
|
||||
"pydoclint[flake8] (>=0.12.0,<0.13.0)",
|
||||
"ruff (>=0.17.6,<0.18.0)",
|
||||
"tryceratops (>=2.4.1,<3.0.0)",
|
||||
]
|
||||
|
||||
test = [
|
||||
|
|
@ -267,6 +268,8 @@ select = [
|
|||
"N8",
|
||||
# pydoclint => Docstring matches implementation
|
||||
"DOC",
|
||||
# tryceratops => Clean exception handling
|
||||
"TRY",
|
||||
# ========================================
|
||||
# `ruff` only (no working `flake8` plugin)
|
||||
# ========================================
|
||||
|
|
@ -330,6 +333,8 @@ extend-ignore = [
|
|||
"SIM901",
|
||||
# TODOs need neither an author nor an issue.
|
||||
"T002", "T003",
|
||||
# Messages are written where the exceptions are raised.
|
||||
"TRY003",
|
||||
]
|
||||
|
||||
per-file-ignores = [
|
||||
|
|
@ -577,6 +582,8 @@ select = [
|
|||
"TD",
|
||||
# flake8-tidy-imports ("I25") => No relative imports
|
||||
"TID",
|
||||
# tryceratops => Clean exception handling
|
||||
"TRY",
|
||||
# =======================================
|
||||
# Violations not covered by `flake8` above
|
||||
# =======================================
|
||||
|
|
@ -625,6 +632,8 @@ extend-ignore = [
|
|||
"RUF100",
|
||||
# TODOs need neither an author nor an issue.
|
||||
"TD002", "TD003",
|
||||
# Messages are written where the exceptions are raised.
|
||||
"TRY003",
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue