@@ -26,7 +26,7 @@ classifiers = [
2626 " Programming Language :: Python :: Implementation :: CPython" ,
2727 " Programming Language :: Python :: Implementation :: PyPy" ,
2828]
29- dependencies = [" haystack-ai>=2.9 .0" , " llama-cpp-python>=0.2.87" ]
29+ dependencies = [" haystack-ai>=2.13 .0" , " llama-cpp-python>=0.2.87" ]
3030
3131[project .urls ]
3232Documentation = " https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/llama_cpp#readme"
@@ -68,18 +68,13 @@ unit = 'pytest -m "not integration" {args:tests}'
6868integration = ' pytest -m "integration" {args:tests}'
6969all = ' pytest {args:tests}'
7070cov-retry = ' all --cov=haystack_integrations --reruns 3 --reruns-delay 30 -x'
71- types = " mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests }"
71+ types = " mypy -p haystack_integrations.components.generators.llama_cpp {args}"
7272
73- # TODO: remove lint environment once this integration is properly typed
74- # test environment should be used instead
75- # https://github.com/deepset-ai/haystack-core-integrations/issues/1771
76- [tool .hatch .envs .lint ]
77- installer = " uv"
78- detached = true
79- dependencies = [" pip" , " black>=23.1.0" , " mypy>=1.0.0" , " ruff>=0.0.243" ]
80-
81- [tool .hatch .envs .lint .scripts ]
82- typing = " mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
73+ [tool .mypy ]
74+ install_types = true
75+ non_interactive = true
76+ check_untyped_defs = true
77+ disallow_incomplete_defs = true
8378
8479[tool .hatch .metadata ]
8580allow-direct-references = true
@@ -169,7 +164,3 @@ markers = [
169164 " integration: marks tests as slow (deselect with '-m \" not integration\" ')" ,
170165]
171166addopts = [" --import-mode=importlib" ]
172-
173- [[tool .mypy .overrides ]]
174- module = [" haystack.*" , " haystack_integrations.*" , " pytest.*" , " llama_cpp.*" ]
175- ignore_missing_imports = true
0 commit comments