@@ -65,18 +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}"
69-
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}"
68+ types = """ mypy -p haystack_integrations.components.embedders.stackit \
69+ -p haystack_integrations.components.generators.stackit {args}"""
7970
71+ [tool .mypy ]
72+ install_types = true
73+ non_interactive = true
74+ check_untyped_defs = true
75+ disallow_incomplete_defs = true
8076
8177[tool .ruff ]
8278target-version = " py38"
@@ -152,22 +148,9 @@ omit = ["*/tests/*", "*/__init__.py"]
152148show_missing = true
153149exclude_lines = [" no cov" , " if __name__ == .__main__.:" , " if TYPE_CHECKING:" ]
154150
155-
156- [[tool .mypy .overrides ]]
157- module = [
158- " stackit.*" ,
159- " haystack.*" ,
160- " haystack_integrations.*" ,
161- " openai.*" ,
162- " pytest.*" ,
163- " numpy.*" ,
164- ]
165- ignore_missing_imports = true
166-
167151[tool .pytest .ini_options ]
168152addopts = " --strict-markers"
169153markers = [
170154 " integration: integration tests" ,
171- " unit: unit tests" ,
172155]
173156log_cli = true
0 commit comments