Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyoverkiz/action_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ async def _execute_batch(
for waiter in waiters:
waiter.set_exception(exc)
raise
except Exception as exc:
except Exception as exc: # noqa: BLE001
# Propagate exceptions to all waiters without swallowing system-level exits.
for waiter in waiters:
waiter.set_exception(exc)
Expand Down
37 changes: 35 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ select = [
"ASYNC",
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# pyupgrade
Expand All @@ -75,11 +76,43 @@ select = [
"N",
# flake8-pytest-style
"PT",
# flake8-logging
"LOG",
# flake8-datetimez
"DTZ",
# flynt
"FLY",
# flake8-implicit-str-concat
"ISC",
# pygrep-hooks
"PGH",
# flake8-self
"SLF",
# flake8-slots
"SLOT",
# tidy imports
"TID",
# flake8-no-pep420
"INP",
# import conventions
"ICN",
# flake8-logging-format
"G",
# blind exception
"BLE",
# tryceratops
"TRY",
# flake8-quotes
"Q",
]
ignore = [
"E501", # Line too long
"TRY003", # Long exception messages are acceptable for domain-specific errors
]
ignore = ["E501"] # Line too long

[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101"] # Allow assert in tests
"tests/**" = ["S101", "SLF001"] # Allow assert and private member access in tests
"utils/**" = ["INP001", "BLE001"] # Utils are scripts, not packages

[tool.ruff.lint.pydocstyle]
convention = "google" # Accepts: "google", "numpy", or "pep257".
Expand Down
Loading