Skip to content

Commit 47a3778

Browse files
committed
ignore s110
1 parent e52dc0c commit 47a3778

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

codeflash/verification/pytest_plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import time as _time_module
1313
import warnings
1414
from pathlib import Path
15-
from typing import TYPE_CHECKING, Any, Callable, Optional
15+
from typing import TYPE_CHECKING, Callable, Optional
1616
from unittest import TestCase
1717

1818
# PyTest Imports
@@ -437,7 +437,7 @@ def _clear_lru_caches(self, item: pytest.Item) -> None:
437437
"importlib",
438438
}
439439

440-
def _clear_cache_for_object(obj: Any) -> None:
440+
def _clear_cache_for_object(obj: obj) -> None:
441441
if obj in processed_functions:
442442
return
443443
processed_functions.add(obj)
@@ -469,9 +469,9 @@ def _clear_cache_for_object(obj: Any) -> None:
469469
for _, obj in inspect.getmembers(module):
470470
if callable(obj):
471471
_clear_cache_for_object(obj)
472-
except Exception: # noqa: S110
472+
except Exception:
473473
pass
474-
except Exception: # noqa: S110
474+
except Exception:
475475
pass
476476

477477
def _set_nodeid(self, nodeid: str, count: int) -> str:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ ignore = [
256256
"LOG015",
257257
"PLC0415",
258258
"UP045",
259+
"S110", # try-except-pass - we do this a lot
259260
]
260261

261262
[tool.ruff.lint.flake8-type-checking]

0 commit comments

Comments
 (0)