@@ -65,18 +65,14 @@ unit = 'pytest -m "not integration" {args:tests}'
65
65
integration = ' pytest -m "integration" {args:tests}'
66
66
all = ' pytest {args:tests}'
67
67
cov-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}"""
79
70
71
+ [tool .mypy ]
72
+ install_types = true
73
+ non_interactive = true
74
+ check_untyped_defs = true
75
+ disallow_incomplete_defs = true
80
76
81
77
[tool .ruff ]
82
78
target-version = " py38"
@@ -152,22 +148,9 @@ omit = ["*/tests/*", "*/__init__.py"]
152
148
show_missing = true
153
149
exclude_lines = [" no cov" , " if __name__ == .__main__.:" , " if TYPE_CHECKING:" ]
154
150
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
-
167
151
[tool .pytest .ini_options ]
168
152
addopts = " --strict-markers"
169
153
markers = [
170
154
" integration: integration tests" ,
171
- " unit: unit tests" ,
172
155
]
173
156
log_cli = true
0 commit comments