@@ -65,17 +65,14 @@ unit = 'pytest -m "not integration" {args:tests}'
6565integration = ' pytest -m "integration" {args:tests}'
6666all = ' pytest {args:tests}'
6767cov-retry = ' all --cov=haystack_integrations --reruns 3 --reruns-delay 30 -x'
68- types = " mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
6968
70- # TODO: remove lint environment once this integration is properly typed
71- # test environment should be used instead
72- # https://github.com/deepset-ai/haystack-core-integrations/issues/1771
73- [tool .hatch .envs .lint ]
74- installer = " uv"
75- detached = true
76- dependencies = [" pip" , " mypy>=1.0.0" , " ruff>=0.0.243" ]
77- [tool .hatch .envs .lint .scripts ]
78- typing = " mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
69+ types = " mypy -p haystack_integrations.components.generators.openrouter {args}"
70+
71+ [tool .mypy ]
72+ install_types = true
73+ non_interactive = true
74+ check_untyped_defs = true
75+ disallow_incomplete_defs = true
7976
8077
8178[tool .ruff ]
@@ -152,22 +149,9 @@ omit = ["*/tests/*", "*/__init__.py"]
152149show_missing = true
153150exclude_lines = [" no cov" , " if __name__ == .__main__.:" , " if TYPE_CHECKING:" ]
154151
155-
156- [[tool .mypy .overrides ]]
157- module = [
158- " haystack.*" ,
159- " haystack_integrations.*" ,
160- " openai.*" ,
161- " pytest.*" ,
162- " numpy.*" ,
163- ]
164- ignore_missing_imports = true
165-
166152[tool .pytest .ini_options ]
167153addopts = " --strict-markers"
168154markers = [
169155 " integration: integration tests" ,
170- " unit: unit tests" ,
171- " chat_generators: chat_generators tests" ,
172156]
173157log_cli = true
0 commit comments