diff --git a/pyproject.toml b/pyproject.toml index 261fe3e..a6efa85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,5 +7,11 @@ check_untyped_defs = true ignore_missing_imports = true no_warn_no_return = true +[[tool.mypy.overrides]] +module = "queuelib.tests.*" +allow_untyped_defs = true +allow_untyped_calls = true +check_untyped_defs = false + [tool.black] target-version = ["py38", "py39", "py310", "py311", "py312"] \ No newline at end of file diff --git a/queuelib/queue.py b/queuelib/queue.py index b85b0ea..c63da68 100644 --- a/queuelib/queue.py +++ b/queuelib/queue.py @@ -15,9 +15,9 @@ class _BaseQueueMeta(type): """ def __instancecheck__(cls, instance: Any) -> bool: - return cls.__subclasscheck__( + return cls.__subclasscheck__( # pylint: disable=no-value-for-parameter type(instance) - ) # pylint: disable=no-value-for-parameter + ) def __subclasscheck__(cls, subclass: Any) -> bool: return ( diff --git a/tox.ini b/tox.ini index f3e12e2..5e1e824 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py, pypy3, pylint, typing, twinecheck +envlist = py, pylint, typing, twinecheck, pre-commit [testenv] deps =