@@ -46,24 +46,33 @@ git_describe_command = 'git describe --tags --match="integrations/pinecone-v[0-9
4646
4747[tool .hatch .envs .default ]
4848installer = " uv"
49+ dependencies = [" haystack-pydoc-tools" , " ruff" ]
50+
51+ [tool .hatch .envs .default .scripts ]
52+ docs = [" pydoc-markdown pydoc/config.yml" ]
53+ fmt = " ruff check --fix {args} && ruff format {args}"
54+ fmt-check = " ruff check {args} && ruff format --check {args}"
55+
56+ [tool .hatch .envs .test ]
57+ installer = " uv"
4958dependencies = [
50- " coverage[toml]>=6.5" ,
5159 " pytest" ,
5260 " pytest-asyncio" ,
61+ " pytest-cov" ,
5362 " pytest-rerunfailures" ,
63+ " mypy" ,
64+ " pip" ,
5465 " pytest-xdist" ,
55- " haystack-pydoc-tools" ,
5666]
57- [tool .hatch .envs .default .scripts ]
67+
68+ [tool .hatch .envs .test .scripts ]
69+ unit = ' pytest -m "not integration" {args:tests}'
70+ integration = ' pytest -m "integration" {args:tests}'
71+ all = ' pytest {args:tests}'
72+
5873# Pinecone tests are slow (require HTTP requests), so we run them in parallel
5974# with pytest-xdist (https://pytest-xdist.readthedocs.io/en/stable/distribution.html)
60- test = " pytest -n auto --maxprocesses=2 -x {args:tests}"
61- test-cov = " coverage run -m pytest -n auto --maxprocesses=2 {args:tests}"
62- test-cov-retry = " test-cov --reruns 3 --reruns-delay 30 -x"
63- cov-report = [" - coverage combine" , " coverage report" ]
64- cov = [" test-cov" , " cov-report" ]
65- cov-retry = [" test-cov-retry" , " cov-report" ]
66- docs = [" pydoc-markdown pydoc/config.yml" ]
75+ cov-retry = ' all -n auto --maxprocesses=2 --cov=haystack_integrations --reruns 3 --reruns-delay 30 -x'
6776
6877[tool .hatch .envs .lint ]
6978installer = " uv"
0 commit comments