@@ -46,31 +46,38 @@ git_describe_command = 'git describe --tags --match="integrations/amazon_sagemak
4646
4747[tool .hatch .envs .default ]
4848installer = " uv"
49+ dependencies = [" haystack-pydoc-tools" , " ruff" ]
50+ [tool .hatch .envs .default .scripts ]
51+ docs = [" pydoc-markdown pydoc/config.yml" ]
52+ fmt = " ruff check --fix {args} && ruff format {args}"
53+ fmt-check = " ruff check {args} && ruff format --check {args}"
54+
55+ [tool .hatch .envs .test ]
4956dependencies = [
50- " coverage[toml]>=6.5" ,
51- " pytest" ,
52- " pytest-rerunfailures" ,
53- " haystack-pydoc-tools" ,
57+ " pytest" ,
58+ " pytest-asyncio" ,
59+ " pytest-cov" ,
60+ " pytest-rerunfailures" ,
61+ " mypy" ,
62+ " pip"
5463]
55- [tool .hatch .envs .default .scripts ]
56- test = " pytest {args:tests}"
57- test-cov = " coverage run -m pytest {args:tests}"
58- test-cov-retry = " test-cov --reruns 3 --reruns-delay 30 -x"
59- cov-report = [" - coverage combine" , " coverage report" ]
60- cov = [" test-cov" , " cov-report" ]
61- cov-retry = [" test-cov-retry" , " cov-report" ]
6264
63- docs = [" pydoc-markdown pydoc/config.yml" ]
65+ [tool .hatch .envs .test .scripts ]
66+ unit = ' pytest -m "not integration" {args:tests}'
67+ integration = ' pytest -m "integration" {args:tests}'
68+ all = ' pytest {args:tests}'
69+ cov-retry = ' all --cov=haystack_integrations --reruns 3 --reruns-delay 30 -x'
70+ types = " mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
6471
72+ # TODO: remove lint environment once this integration is properly typed
73+ # test environment should be used instead
74+ # https://github.com/deepset-ai/haystack-core-integrations/issues/1771
6575[tool .hatch .envs .lint ]
6676installer = " uv"
6777detached = true
6878dependencies = [" pip" , " black>=23.1.0" , " mypy>=1.0.0" , " ruff>=0.0.243" ]
6979[tool .hatch .envs .lint .scripts ]
7080typing = " mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
71- style = [" ruff check {args:.}" , " black --check --diff {args:.}" ]
72- fmt = [" black {args:.}" , " ruff check --fix {args:.}" , " style" ]
73- all = [" style" , " typing" ]
7481
7582[tool .black ]
7683target-version = [" py38" ]
0 commit comments