Skip to content

Commit 15e12c7

Browse files
authored
chore: remove black (#1985)
* chore: remove black * fix pinecone workflow * pinecone fmt
1 parent a62d054 commit 15e12c7

File tree

37 files changed

+23
-179
lines changed

37 files changed

+23
-179
lines changed

.github/workflows/pinecone.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ jobs:
5252
- name: Install Hatch
5353
run: pip install --upgrade hatch
5454

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

6061
- name: Generate docs
6162
if: matrix.python-version == '3.9' && runner.os == 'Linux'

integrations/amazon_bedrock/pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ module = [
8686
]
8787
ignore_missing_imports = true
8888

89-
[tool.black]
90-
target-version = ["py38"]
91-
line-length = 120
92-
skip-string-normalization = true
93-
9489
[tool.ruff]
9590
target-version = "py38"
9691
line-length = 120

integrations/amazon_sagemaker/pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,10 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7575
[tool.hatch.envs.lint]
7676
installer = "uv"
7777
detached = true
78-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
78+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
7979
[tool.hatch.envs.lint.scripts]
8080
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
8181

82-
[tool.black]
83-
target-version = ["py38"]
84-
line-length = 120
85-
skip-string-normalization = true
86-
8782
[tool.ruff]
8883
target-version = "py38"
8984
line-length = 120

integrations/anthropic/pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ check_untyped_defs = true
7575
disallow_incomplete_defs = true
7676

7777

78-
[tool.black]
79-
target-version = ["py38"]
80-
line-length = 120
81-
skip-string-normalization = true
82-
8378
[tool.ruff]
8479
target-version = "py38"
8580
line-length = 120

integrations/astra/pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,13 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7272
[tool.hatch.envs.lint]
7373
installer = "uv"
7474
detached = true
75-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
75+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
7676
[tool.hatch.envs.lint.scripts]
7777
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
7878

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

82-
[tool.black]
83-
target-version = ["py38"]
84-
line-length = 120
85-
skip-string-normalization = true
86-
8782
[tool.ruff]
8883
target-version = "py38"
8984
line-length = 120

integrations/azure_ai_search/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,14 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7373
# https://github.com/deepset-ai/haystack-core-integrations/issues/1771
7474
[tool.hatch.envs.lint]
7575
detached = true
76-
dependencies = ["black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
76+
dependencies = ["mypy>=1.0.0", "ruff>=0.0.243"]
7777

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

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

84-
[tool.black]
85-
target-version = ["py38"]
86-
line-length = 120
87-
skip-string-normalization = true
8884

8985
[tool.ruff]
9086
target-version = "py38"

integrations/chroma/pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ disallow_incomplete_defs = true
7777
[tool.hatch.metadata]
7878
allow-direct-references = true
7979

80-
[tool.black]
81-
target-version = ["py38"]
82-
line-length = 120
83-
skip-string-normalization = true
84-
8580
[tool.ruff]
8681
target-version = "py38"
8782
line-length = 120

integrations/cohere/pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ non_interactive = true
7676
check_untyped_defs = true
7777
disallow_incomplete_defs = true
7878

79-
[tool.black]
80-
target-version = ["py38"]
81-
line-length = 120
82-
skip-string-normalization = true
83-
8479
[tool.ruff]
8580
target-version = "py38"
8681
line-length = 120

integrations/deepeval/pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,10 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7272
[tool.hatch.envs.lint]
7373
installer = "uv"
7474
detached = true
75-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
75+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
7676
[tool.hatch.envs.lint.scripts]
7777
typing = "mypy --install-types --non-interactive {args:src/}"
7878

79-
[tool.black]
80-
target-version = ["py38"]
81-
line-length = 120
82-
skip-string-normalization = true
83-
8479
[tool.ruff]
8580
target-version = "py38"
8681
line-length = 120

integrations/elasticsearch/pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ disallow_incomplete_defs = true
8282
[tool.hatch.metadata]
8383
allow-direct-references = true
8484

85-
[tool.black]
86-
target-version = ["py38"]
87-
line-length = 120
88-
skip-string-normalization = true
89-
9085
[tool.ruff]
9186
target-version = "py38"
9287
line-length = 120

integrations/fastembed/pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ non_interactive = true
7474
check_untyped_defs = true
7575
disallow_incomplete_defs = true
7676

77-
[tool.black]
78-
target-version = ["py38"]
79-
line-length = 120
80-
skip-string-normalization = true
81-
8277
[tool.ruff]
8378
target-version = "py38"
8479
line-length = 120

integrations/github/pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7474
[tool.hatch.envs.lint]
7575
installer = "uv"
7676
detached = true
77-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
77+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
7878

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

82-
[tool.black]
83-
target-version = ["py38"]
84-
line-length = 120
85-
skip-string-normalization = true
86-
8782
[tool.ruff]
8883
target-version = "py38"
8984
line-length = 120

integrations/google_ai/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7474
[tool.hatch.envs.lint]
7575
installer = "uv"
7676
detached = true
77-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
77+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
7878

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

82-
[tool.black]
83-
target-version = ["py38"]
84-
line-length = 120
85-
skip-string-normalization = true
8682

8783
[tool.ruff]
8884
target-version = "py38"

integrations/google_genai/pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7777
[tool.hatch.envs.lint]
7878
installer = "uv"
7979
detached = true
80-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243", "more-itertools"]
80+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243", "more-itertools"]
8181

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

85-
[tool.black]
86-
target-version = ["py38"]
87-
line-length = 120
88-
skip-string-normalization = true
89-
9085
[tool.ruff]
9186
target-version = "py38"
9287
line-length = 120

integrations/google_vertex/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7474
[tool.hatch.envs.lint]
7575
installer = "uv"
7676
detached = true
77-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
77+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
7878

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

82-
[tool.black]
83-
target-version = ["py38"]
84-
line-length = 120
85-
skip-string-normalization = true
8682

8783
[tool.ruff]
8884
target-version = "py38"

integrations/instructor_embedders/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
9696
[tool.hatch.envs.lint]
9797
installer = "uv"
9898
detached = true
99-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
99+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
100100

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

182-
[tool.black]
183-
line-length = 120
184182

185183
[[tool.mypy.overrides]]
186184
module = [

integrations/jina/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7676
[tool.hatch.envs.lint]
7777
installer = "uv"
7878
detached = true
79-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
79+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
8080

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

84-
[tool.black]
85-
target-version = ["py38"]
86-
line-length = 120
87-
skip-string-normalization = true
8884

8985
[tool.ruff]
9086
target-version = "py38"

integrations/langfuse/pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ installer = "uv"
7979
detached = true
8080
dependencies = [
8181
"pip",
82-
"black>=23.1.0",
8382
"mypy>=1.0.0",
8483
"ruff>=0.0.243",
8584
]
@@ -90,10 +89,6 @@ typing = "mypy --install-types --non-interactive --explicit-package-bases {args:
9089
[tool.hatch.metadata]
9190
allow-direct-references = true
9291

93-
[tool.black]
94-
target-version = ["py38"]
95-
line-length = 120
96-
skip-string-normalization = true
9792

9893
[tool.ruff]
9994
target-version = "py38"

integrations/llama_cpp/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ allow-direct-references = true
8282
[tool.ruff.lint.isort]
8383
known-first-party = ["haystack_integrations"]
8484

85-
[tool.black]
86-
target-version = ["py38"]
87-
line-length = 120
88-
skip-string-normalization = true
8985

9086
[tool.ruff]
9187
target-version = "py38"

integrations/mcp/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
8686
[tool.hatch.envs.lint]
8787
installer = "uv"
8888
detached = true
89-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
89+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
9090

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

94-
[tool.black]
95-
target-version = ["py310"]
96-
line-length = 120
97-
skip-string-normalization = true
9894

9995
[tool.ruff]
10096
target-version = "py310"

integrations/meta_llama/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,10 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7373
[tool.hatch.envs.lint]
7474
installer = "uv"
7575
detached = true
76-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
76+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
7777
[tool.hatch.envs.lint.scripts]
7878
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
7979

80-
[tool.black]
81-
target-version = ["py38"]
82-
line-length = 120
83-
skip-string-normalization = true
8480

8581
[tool.ruff]
8682
target-version = "py38"

integrations/mistral/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,11 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7575
[tool.hatch.envs.lint]
7676
installer = "uv"
7777
detached = true
78-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
78+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
7979

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

83-
[tool.black]
84-
target-version = ["py38"]
85-
line-length = 120
86-
skip-string-normalization = true
8783

8884
[tool.ruff]
8985
target-version = "py38"

integrations/mongodb_atlas/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ non_interactive = true
7878
check_untyped_defs = true
7979
disallow_incomplete_defs = true
8080

81-
[tool.black]
82-
target-version = ["py38"]
83-
line-length = 120
84-
skip-string-normalization = true
8581

8682
[tool.ruff]
8783
target-version = "py38"

integrations/nvidia/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ check_untyped_defs = true
8080
disallow_incomplete_defs = true
8181

8282

83-
[tool.black]
84-
target-version = ["py38"]
85-
line-length = 120
86-
skip-string-normalization = true
8783

8884
[tool.ruff]
8985
target-version = "py38"

integrations/ollama/pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ allow-direct-references = true
8686
[tool.ruff.lint.isort]
8787
known-first-party = ["haystack_integrations"]
8888

89-
[tool.black]
90-
target-version = ["py38"]
91-
line-length = 120
92-
skip-string-normalization = true
9389

9490
[tool.ruff]
9591
target-version = "py38"

integrations/openrouter/pyproject.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,10 @@ types = "mypy --install-types --non-interactive --explicit-package-bases {args:s
7373
[tool.hatch.envs.lint]
7474
installer = "uv"
7575
detached = true
76-
dependencies = ["pip", "black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"]
76+
dependencies = ["pip", "mypy>=1.0.0", "ruff>=0.0.243"]
7777
[tool.hatch.envs.lint.scripts]
7878
typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}"
7979

80-
[tool.black]
81-
target-version = ["py38"]
82-
line-length = 120
83-
skip-string-normalization = true
8480

8581
[tool.ruff]
8682
target-version = "py38"

0 commit comments

Comments
 (0)