ignore s110

This commit is contained in:
Kevin Turcios 2026-01-29 12:07:47 -05:00
parent e52dc0c647
commit 47a3778ff7
2 changed files with 5 additions and 4 deletions

View file

@ -12,7 +12,7 @@ import sys
import time as _time_module
import warnings
from pathlib import Path
from typing import TYPE_CHECKING, Any, Callable, Optional
from typing import TYPE_CHECKING, Callable, Optional
from unittest import TestCase
# PyTest Imports
@ -437,7 +437,7 @@ class PytestLoops:
"importlib",
}
def _clear_cache_for_object(obj: Any) -> None:
def _clear_cache_for_object(obj: obj) -> None:
if obj in processed_functions:
return
processed_functions.add(obj)
@ -469,9 +469,9 @@ class PytestLoops:
for _, obj in inspect.getmembers(module):
if callable(obj):
_clear_cache_for_object(obj)
except Exception: # noqa: S110
except Exception:
pass
except Exception: # noqa: S110
except Exception:
pass
def _set_nodeid(self, nodeid: str, count: int) -> str:

View file

@ -256,6 +256,7 @@ ignore = [
"LOG015",
"PLC0415",
"UP045",
"S110", # try-except-pass - we do this a lot
]
[tool.ruff.lint.flake8-type-checking]