From 0f480a62b43e2f82f6948ed139bf4f5b6abea739 Mon Sep 17 00:00:00 2001 From: Vladimir Blagojevic Date: Fri, 28 Jun 2024 08:57:54 +0200 Subject: [PATCH] Update ruff invocation to include check parameter --- integrations/amazon_bedrock/pyproject.toml | 2 +- integrations/amazon_sagemaker/pyproject.toml | 2 +- integrations/anthropic/pyproject.toml | 2 +- integrations/chroma/pyproject.toml | 2 +- integrations/cohere/pyproject.toml | 2 +- integrations/deepeval/pyproject.toml | 2 +- integrations/elasticsearch/pyproject.toml | 2 +- integrations/fastembed/pyproject.toml | 2 +- integrations/google_ai/pyproject.toml | 2 +- integrations/google_vertex/pyproject.toml | 2 +- integrations/gradient/pyproject.toml | 2 +- integrations/instructor_embedders/pyproject.toml | 2 +- integrations/jina/pyproject.toml | 2 +- integrations/llama_cpp/pyproject.toml | 2 +- integrations/mistral/pyproject.toml | 2 +- integrations/mongodb_atlas/pyproject.toml | 2 +- integrations/nvidia/pyproject.toml | 2 +- integrations/ollama/pyproject.toml | 2 +- integrations/opensearch/pyproject.toml | 2 +- integrations/optimum/pyproject.toml | 2 +- integrations/pgvector/pyproject.toml | 2 +- integrations/pinecone/pyproject.toml | 2 +- integrations/qdrant/pyproject.toml | 2 +- integrations/ragas/pyproject.toml | 2 +- integrations/unstructured/pyproject.toml | 2 +- integrations/weaviate/pyproject.toml | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/integrations/amazon_bedrock/pyproject.toml b/integrations/amazon_bedrock/pyproject.toml index 411631da9..8c3d084b5 100644 --- a/integrations/amazon_bedrock/pyproject.toml +++ b/integrations/amazon_bedrock/pyproject.toml @@ -63,7 +63,7 @@ dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] diff --git a/integrations/amazon_sagemaker/pyproject.toml b/integrations/amazon_sagemaker/pyproject.toml index 0bef45ee2..bcddf98b7 100644 --- a/integrations/amazon_sagemaker/pyproject.toml +++ b/integrations/amazon_sagemaker/pyproject.toml @@ -67,7 +67,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/anthropic/pyproject.toml b/integrations/anthropic/pyproject.toml index c8ef25cbb..0f3c31987 100644 --- a/integrations/anthropic/pyproject.toml +++ b/integrations/anthropic/pyproject.toml @@ -63,7 +63,7 @@ dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] diff --git a/integrations/chroma/pyproject.toml b/integrations/chroma/pyproject.toml index 6c786a3fe..18c4afa50 100644 --- a/integrations/chroma/pyproject.toml +++ b/integrations/chroma/pyproject.toml @@ -68,7 +68,7 @@ dependencies = [ ] [tool.hatch.envs.lint.scripts] typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/cohere/pyproject.toml b/integrations/cohere/pyproject.toml index e095d9804..be7cb5a85 100644 --- a/integrations/cohere/pyproject.toml +++ b/integrations/cohere/pyproject.toml @@ -57,7 +57,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/deepeval/pyproject.toml b/integrations/deepeval/pyproject.toml index caaa35b59..2927d276f 100644 --- a/integrations/deepeval/pyproject.toml +++ b/integrations/deepeval/pyproject.toml @@ -57,7 +57,7 @@ detached = true dependencies = ["black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"] [tool.hatch.envs.lint.scripts] typing = "mypy --install-types --non-interactive {args:src/}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/elasticsearch/pyproject.toml b/integrations/elasticsearch/pyproject.toml index 8c6494240..394eaeff7 100644 --- a/integrations/elasticsearch/pyproject.toml +++ b/integrations/elasticsearch/pyproject.toml @@ -63,7 +63,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/fastembed/pyproject.toml b/integrations/fastembed/pyproject.toml index b723ffe58..7947fa736 100644 --- a/integrations/fastembed/pyproject.toml +++ b/integrations/fastembed/pyproject.toml @@ -64,7 +64,7 @@ detached = true dependencies = ["black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243", "numpy"] [tool.hatch.envs.lint.scripts] typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/google_ai/pyproject.toml b/integrations/google_ai/pyproject.toml index 9726fe180..133822c19 100644 --- a/integrations/google_ai/pyproject.toml +++ b/integrations/google_ai/pyproject.toml @@ -61,7 +61,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/google_vertex/pyproject.toml b/integrations/google_vertex/pyproject.toml index 21f923215..9e6ddf208 100644 --- a/integrations/google_vertex/pyproject.toml +++ b/integrations/google_vertex/pyproject.toml @@ -61,7 +61,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/gradient/pyproject.toml b/integrations/gradient/pyproject.toml index 6500f5fb8..3009a8db0 100644 --- a/integrations/gradient/pyproject.toml +++ b/integrations/gradient/pyproject.toml @@ -66,7 +66,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/instructor_embedders/pyproject.toml b/integrations/instructor_embedders/pyproject.toml index 359d7f2e8..842286a6f 100644 --- a/integrations/instructor_embedders/pyproject.toml +++ b/integrations/instructor_embedders/pyproject.toml @@ -86,7 +86,7 @@ dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/jina/pyproject.toml b/integrations/jina/pyproject.toml index bcf951834..400ddad17 100644 --- a/integrations/jina/pyproject.toml +++ b/integrations/jina/pyproject.toml @@ -60,7 +60,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/llama_cpp/pyproject.toml b/integrations/llama_cpp/pyproject.toml index 05ff6747c..5f2db83ea 100644 --- a/integrations/llama_cpp/pyproject.toml +++ b/integrations/llama_cpp/pyproject.toml @@ -68,7 +68,7 @@ dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/mistral/pyproject.toml b/integrations/mistral/pyproject.toml index f57c1ff80..13aa5da1a 100644 --- a/integrations/mistral/pyproject.toml +++ b/integrations/mistral/pyproject.toml @@ -57,7 +57,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/mongodb_atlas/pyproject.toml b/integrations/mongodb_atlas/pyproject.toml index 8ca6f2f88..6fb1ce884 100644 --- a/integrations/mongodb_atlas/pyproject.toml +++ b/integrations/mongodb_atlas/pyproject.toml @@ -64,7 +64,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/nvidia/pyproject.toml b/integrations/nvidia/pyproject.toml index 7e467fca2..7bbdc7b8c 100644 --- a/integrations/nvidia/pyproject.toml +++ b/integrations/nvidia/pyproject.toml @@ -58,7 +58,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/ollama/pyproject.toml b/integrations/ollama/pyproject.toml index 3a937d3ff..6b64f88c6 100644 --- a/integrations/ollama/pyproject.toml +++ b/integrations/ollama/pyproject.toml @@ -69,7 +69,7 @@ dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/opensearch/pyproject.toml b/integrations/opensearch/pyproject.toml index af879acd6..c148c644f 100644 --- a/integrations/opensearch/pyproject.toml +++ b/integrations/opensearch/pyproject.toml @@ -64,7 +64,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/optimum/pyproject.toml b/integrations/optimum/pyproject.toml index e5c1c1d78..f110afa13 100644 --- a/integrations/optimum/pyproject.toml +++ b/integrations/optimum/pyproject.toml @@ -79,7 +79,7 @@ dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/pgvector/pyproject.toml b/integrations/pgvector/pyproject.toml index 9ea2d3a58..c66b58e4a 100644 --- a/integrations/pgvector/pyproject.toml +++ b/integrations/pgvector/pyproject.toml @@ -64,7 +64,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/pinecone/pyproject.toml b/integrations/pinecone/pyproject.toml index c79b80161..96acbab85 100644 --- a/integrations/pinecone/pyproject.toml +++ b/integrations/pinecone/pyproject.toml @@ -68,7 +68,7 @@ detached = true dependencies = ["black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243", "numpy"] [tool.hatch.envs.lint.scripts] typing = "mypy --install-types --non-interactive --explicit-package-bases {args:src/ tests}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/qdrant/pyproject.toml b/integrations/qdrant/pyproject.toml index f535fd7a6..33d64a5b5 100644 --- a/integrations/qdrant/pyproject.toml +++ b/integrations/qdrant/pyproject.toml @@ -60,7 +60,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/ragas/pyproject.toml b/integrations/ragas/pyproject.toml index 6a43aebea..f5864fcae 100644 --- a/integrations/ragas/pyproject.toml +++ b/integrations/ragas/pyproject.toml @@ -57,7 +57,7 @@ detached = true dependencies = ["black>=23.1.0", "mypy>=1.0.0", "ruff>=0.0.243"] [tool.hatch.envs.lint.scripts] typing = "mypy --install-types --non-interactive {args:src/}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/unstructured/pyproject.toml b/integrations/unstructured/pyproject.toml index 05a8b6f30..6318123ae 100644 --- a/integrations/unstructured/pyproject.toml +++ b/integrations/unstructured/pyproject.toml @@ -62,7 +62,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"] diff --git a/integrations/weaviate/pyproject.toml b/integrations/weaviate/pyproject.toml index b4be4fbe6..5747cd7fc 100644 --- a/integrations/weaviate/pyproject.toml +++ b/integrations/weaviate/pyproject.toml @@ -63,7 +63,7 @@ detached = true dependencies = ["black>=23.1.0", "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}" -style = ["ruff {args:.}", "black --check --diff {args:.}"] +style = ["ruff check {args:.}", "black --check --diff {args:.}"] fmt = ["black {args:.}", "ruff --fix {args:.}", "style"] all = ["style", "typing"]