Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/pinecone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ jobs:
- name: Install Hatch
run: pip install --upgrade hatch

# TODO: Once this integration is properly typed, use hatch run test:types
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
- name: Lint
working-directory: integrations/pinecone
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run lint:all
run: hatch run fmt-check && hatch run lint:typing

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
Expand Down
5 changes: 0 additions & 5 deletions integrations/amazon_bedrock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ module = [
]
ignore_missing_imports = true

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we require python => 3.9, should we upgrade this to py39?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!
I want to do this in another PR (to be done on Haystack too), since this would re-format all the repository.

line-length = 120
Expand Down
7 changes: 1 addition & 6 deletions integrations/amazon_sagemaker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,10 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
5 changes: 0 additions & 5 deletions integrations/anthropic/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ check_untyped_defs = true
disallow_incomplete_defs = true


[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
7 changes: 1 addition & 6 deletions integrations/astra/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,13 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.hatch.metadata]
allow-direct-references = true

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
6 changes: 1 addition & 5 deletions integrations/azure_ai_search/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,14 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
[tool.hatch.envs.lint]
detached = true
dependencies = ["black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["mypy>=1.0.0", "ruff>=0.0.243"]

[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.hatch.metadata]
allow-direct-references = true

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
5 changes: 0 additions & 5 deletions integrations/chroma/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ disallow_incomplete_defs = true
[tool.hatch.metadata]
allow-direct-references = true

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
5 changes: 0 additions & 5 deletions integrations/cohere/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@ non_interactive = true
check_untyped_defs = true
disallow_incomplete_defs = true

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
7 changes: 1 addition & 6 deletions integrations/deepeval/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,10 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive {args:src/}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
5 changes: 0 additions & 5 deletions integrations/elasticsearch/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ disallow_incomplete_defs = true
[tool.hatch.metadata]
allow-direct-references = true

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
5 changes: 0 additions & 5 deletions integrations/fastembed/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ non_interactive = true
check_untyped_defs = true
disallow_incomplete_defs = true

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
7 changes: 1 addition & 6 deletions integrations/github/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]

[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
6 changes: 1 addition & 5 deletions integrations/google_ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]

[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
7 changes: 1 addition & 6 deletions integrations/google_genai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243", "more-itertools"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243", "more-itertools"]

[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
line-length = 120
Expand Down
6 changes: 1 addition & 5 deletions integrations/google_vertex/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]

[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
4 changes: 1 addition & 3 deletions integrations/instructor_embedders/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]

[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
Expand Down Expand Up @@ -179,8 +179,6 @@ addopts = "--strict-markers"
markers = ["integration: integration tests"]
log_cli = true

[tool.black]
line-length = 120

[[tool.mypy.overrides]]
module = [
Expand Down
6 changes: 1 addition & 5 deletions integrations/jina/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]

[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
5 changes: 0 additions & 5 deletions integrations/langfuse/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ installer = "uv"
detached = true
dependencies = [
"pip",
"black>=23.1.0",
"mypy>=1.0.0",
"ruff>=0.0.243",
]
Expand All @@ -90,10 +89,6 @@ typing = "mypy --install-types --non-interactive --explicit-package-bases {args:
[tool.hatch.metadata]
allow-direct-references = true

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
4 changes: 0 additions & 4 deletions integrations/llama_cpp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ allow-direct-references = true
[tool.ruff.lint.isort]
known-first-party = ["haystack_integrations"]

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
6 changes: 1 addition & 5 deletions integrations/mcp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]

[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py310"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py310"
Expand Down
6 changes: 1 addition & 5 deletions integrations/meta_llama/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,10 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
6 changes: 1 addition & 5 deletions integrations/mistral/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]

[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
4 changes: 0 additions & 4 deletions integrations/mongodb_atlas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ non_interactive = true
check_untyped_defs = true
disallow_incomplete_defs = true

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
4 changes: 0 additions & 4 deletions integrations/nvidia/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ check_untyped_defs = true
disallow_incomplete_defs = true


[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
4 changes: 0 additions & 4 deletions integrations/ollama/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ allow-direct-references = true
[tool.ruff.lint.isort]
known-first-party = ["haystack_integrations"]

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
6 changes: 1 addition & 5 deletions integrations/openrouter/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,10 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
[tool.hatch.envs.lint]
installer = "uv"
detached = true
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
[tool.hatch.envs.lint.scripts]
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"

[tool.black]
target-version = ["py38"]
line-length = 120
skip-string-normalization = true

[tool.ruff]
target-version = "py38"
Expand Down
Loading
Loading