From 22fad17d49196e3181c969dc3f85331fd04a9159 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Wed, 29 May 2024 16:24:53 +0200 Subject: [PATCH] add diff command to hatch --- integrations/amazon_bedrock/pyproject.toml | 4 ++++ integrations/amazon_sagemaker/pyproject.toml | 4 +++- integrations/anthropic/pyproject.toml | 4 ++++ integrations/astra/pyproject.toml | 4 ++++ integrations/chroma/pyproject.toml | 3 +++ integrations/cohere/pyproject.toml | 3 +++ integrations/deepeval/pyproject.toml | 3 +++ integrations/elasticsearch/pyproject.toml | 3 +++ integrations/fastembed/pyproject.toml | 3 +++ integrations/google_ai/pyproject.toml | 4 ++++ integrations/google_vertex/pyproject.toml | 4 ++++ integrations/gradient/pyproject.toml | 4 ++++ integrations/instructor_embedders/pyproject.toml | 3 +++ integrations/jina/pyproject.toml | 4 +++- integrations/langfuse/pyproject.toml | 4 +++- integrations/llama_cpp/pyproject.toml | 4 ++++ integrations/mistral/pyproject.toml | 3 +++ integrations/mongodb_atlas/pyproject.toml | 3 +++ integrations/nvidia/pyproject.toml | 3 +++ integrations/ollama/pyproject.toml | 3 +++ integrations/opensearch/pyproject.toml | 4 +++- integrations/optimum/pyproject.toml | 3 +++ integrations/pgvector/pyproject.toml | 3 +++ integrations/pinecone/pyproject.toml | 3 +++ integrations/qdrant/pyproject.toml | 3 +++ integrations/ragas/pyproject.toml | 3 +++ integrations/unstructured/pyproject.toml | 3 +++ integrations/weaviate/pyproject.toml | 3 +++ 28 files changed, 91 insertions(+), 4 deletions(-) diff --git a/integrations/amazon_bedrock/pyproject.toml b/integrations/amazon_bedrock/pyproject.toml index bbdc61484..5730e8dfd 100644 --- a/integrations/amazon_bedrock/pyproject.toml +++ b/integrations/amazon_bedrock/pyproject.toml @@ -67,6 +67,10 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff --name-only main..$(git tag -l --sort=-creatordate \"integrations/amazon_bedrock-v*\" | head -n 1) ." +] + [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/integrations/amazon_sagemaker/pyproject.toml b/integrations/amazon_sagemaker/pyproject.toml index a1f6ff239..a5ad51d4a 100644 --- a/integrations/amazon_sagemaker/pyproject.toml +++ b/integrations/amazon_sagemaker/pyproject.toml @@ -66,10 +66,12 @@ cov = [ "test-cov", "cov-report", ] - docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff --name-only main..$(git tag -l --sort=-creatordate \"integrations/amazon_sagemaker-v*\" | head -n 1) ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/anthropic/pyproject.toml b/integrations/anthropic/pyproject.toml index b04a54258..6c9bccb59 100644 --- a/integrations/anthropic/pyproject.toml +++ b/integrations/anthropic/pyproject.toml @@ -66,6 +66,10 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff --name-only main..$(git tag -l --sort=-creatordate \"integrations/anthropic-v*\" | head -n 1) ." +] + [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/integrations/astra/pyproject.toml b/integrations/astra/pyproject.toml index 129570788..f91c0f229 100644 --- a/integrations/astra/pyproject.toml +++ b/integrations/astra/pyproject.toml @@ -67,6 +67,10 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff --name-only main..$(git tag -l --sort=-creatordate \"integrations/astra-v*\" | head -n 1) ." +] + [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/chroma/pyproject.toml b/integrations/chroma/pyproject.toml index f4cf6ecc2..4411656ac 100644 --- a/integrations/chroma/pyproject.toml +++ b/integrations/chroma/pyproject.toml @@ -67,6 +67,9 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff --name-only main..$(git tag -l --sort=-creatordate \"integrations/chroma-v*\" | head -n 1) ." +] [[tool.hatch.envs.all.matrix]] python = ["3.9", "3.10"] diff --git a/integrations/cohere/pyproject.toml b/integrations/cohere/pyproject.toml index 3f4ad5c0b..ef7ea8b8a 100644 --- a/integrations/cohere/pyproject.toml +++ b/integrations/cohere/pyproject.toml @@ -51,6 +51,9 @@ test-cov = "coverage run -m pytest {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/cohere-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/deepeval/pyproject.toml b/integrations/deepeval/pyproject.toml index 1da5cd820..da40c1f1b 100644 --- a/integrations/deepeval/pyproject.toml +++ b/integrations/deepeval/pyproject.toml @@ -48,6 +48,9 @@ test-cov = "coverage run -m pytest {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/deepeval-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/elasticsearch/pyproject.toml b/integrations/elasticsearch/pyproject.toml index 1612601e2..0d8654976 100644 --- a/integrations/elasticsearch/pyproject.toml +++ b/integrations/elasticsearch/pyproject.toml @@ -66,6 +66,9 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff --name-only main..$(git tag -l --sort=-creatordate \"integrations/elasticsearch-v*\" | head -n 1) ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/fastembed/pyproject.toml b/integrations/fastembed/pyproject.toml index 538972651..6c4eb1476 100644 --- a/integrations/fastembed/pyproject.toml +++ b/integrations/fastembed/pyproject.toml @@ -67,6 +67,9 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/fastembed-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/integrations/google_ai/pyproject.toml b/integrations/google_ai/pyproject.toml index d7a31fa74..aa971d3a2 100644 --- a/integrations/google_ai/pyproject.toml +++ b/integrations/google_ai/pyproject.toml @@ -65,6 +65,10 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/google_ai-v*\" | head -n 1)..main ." +] + [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/google_vertex/pyproject.toml b/integrations/google_vertex/pyproject.toml index 349bb06a0..f7cc446ae 100644 --- a/integrations/google_vertex/pyproject.toml +++ b/integrations/google_vertex/pyproject.toml @@ -66,6 +66,10 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/google_vertex-v*\" | head -n 1)..main ." +] + [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/gradient/pyproject.toml b/integrations/gradient/pyproject.toml index 0ed7c66d2..a6b37d462 100644 --- a/integrations/gradient/pyproject.toml +++ b/integrations/gradient/pyproject.toml @@ -68,6 +68,10 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/gradient-v*\" | head -n 1)..main ." +] + [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/instructor_embedders/pyproject.toml b/integrations/instructor_embedders/pyproject.toml index faf5d0216..721282d92 100644 --- a/integrations/instructor_embedders/pyproject.toml +++ b/integrations/instructor_embedders/pyproject.toml @@ -83,6 +83,9 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/instructor_embedders-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.test.matrix]] python = ["38", "39", "310", "311"] diff --git a/integrations/jina/pyproject.toml b/integrations/jina/pyproject.toml index e724cac96..e655c9849 100644 --- a/integrations/jina/pyproject.toml +++ b/integrations/jina/pyproject.toml @@ -50,7 +50,9 @@ test-cov = "coverage run -m pytest {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] - +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/jina-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/langfuse/pyproject.toml b/integrations/langfuse/pyproject.toml index beff61c35..e93aa015e 100644 --- a/integrations/langfuse/pyproject.toml +++ b/integrations/langfuse/pyproject.toml @@ -64,7 +64,9 @@ cov = [ "cov-report", ] docs = ["pydoc-markdown pydoc/config.yml"] - +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/langfuse-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/integrations/llama_cpp/pyproject.toml b/integrations/llama_cpp/pyproject.toml index a90118ee4..6ae67526e 100644 --- a/integrations/llama_cpp/pyproject.toml +++ b/integrations/llama_cpp/pyproject.toml @@ -68,6 +68,10 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/llama_cpp-v*\" | head -n 1)..main ." +] + [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/integrations/mistral/pyproject.toml b/integrations/mistral/pyproject.toml index 460dbc4cc..18a715ac7 100644 --- a/integrations/mistral/pyproject.toml +++ b/integrations/mistral/pyproject.toml @@ -48,6 +48,9 @@ test-cov = "coverage run -m pytest {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/mistral-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/mongodb_atlas/pyproject.toml b/integrations/mongodb_atlas/pyproject.toml index df6a1dec6..fa0c6a814 100644 --- a/integrations/mongodb_atlas/pyproject.toml +++ b/integrations/mongodb_atlas/pyproject.toml @@ -67,6 +67,9 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/mongodb_atlas-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/integrations/nvidia/pyproject.toml b/integrations/nvidia/pyproject.toml index 6d823407b..7cc5eee42 100644 --- a/integrations/nvidia/pyproject.toml +++ b/integrations/nvidia/pyproject.toml @@ -49,6 +49,9 @@ test-cov = "coverage run -m pytest {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/nvidia-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/ollama/pyproject.toml b/integrations/ollama/pyproject.toml index d98e2a6ca..b05b3488e 100644 --- a/integrations/ollama/pyproject.toml +++ b/integrations/ollama/pyproject.toml @@ -65,6 +65,9 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/ollama-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/integrations/opensearch/pyproject.toml b/integrations/opensearch/pyproject.toml index 38f93f3a2..86a9218fc 100644 --- a/integrations/opensearch/pyproject.toml +++ b/integrations/opensearch/pyproject.toml @@ -63,10 +63,12 @@ cov = [ "test-cov", "cov-report", ] - docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/opensearch-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/optimum/pyproject.toml b/integrations/optimum/pyproject.toml index a0ed15f92..bf6d53733 100644 --- a/integrations/optimum/pyproject.toml +++ b/integrations/optimum/pyproject.toml @@ -66,6 +66,9 @@ test-cov = "coverage run -m pytest {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/optimum-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/integrations/pgvector/pyproject.toml b/integrations/pgvector/pyproject.toml index b440cf28e..ca5159c0e 100644 --- a/integrations/pgvector/pyproject.toml +++ b/integrations/pgvector/pyproject.toml @@ -68,6 +68,9 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/pgvector-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"] diff --git a/integrations/pinecone/pyproject.toml b/integrations/pinecone/pyproject.toml index e59c12b31..9ae269fe5 100644 --- a/integrations/pinecone/pyproject.toml +++ b/integrations/pinecone/pyproject.toml @@ -59,6 +59,9 @@ test-cov = "coverage run -m pytest -n auto --maxprocesses=2 {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/pinecone-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/qdrant/pyproject.toml b/integrations/qdrant/pyproject.toml index 05de42585..86dbe7751 100644 --- a/integrations/qdrant/pyproject.toml +++ b/integrations/qdrant/pyproject.toml @@ -51,6 +51,9 @@ test-cov = "coverage run -m pytest {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/qdrant-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/ragas/pyproject.toml b/integrations/ragas/pyproject.toml index a763ab17c..c1b4eeafe 100644 --- a/integrations/ragas/pyproject.toml +++ b/integrations/ragas/pyproject.toml @@ -48,6 +48,9 @@ test-cov = "coverage run -m pytest {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/ragas-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/unstructured/pyproject.toml b/integrations/unstructured/pyproject.toml index 9430b8732..496ad0da1 100644 --- a/integrations/unstructured/pyproject.toml +++ b/integrations/unstructured/pyproject.toml @@ -66,6 +66,9 @@ cov = [ docs = [ "pydoc-markdown pydoc/config.yml" ] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/unstructured-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11"] diff --git a/integrations/weaviate/pyproject.toml b/integrations/weaviate/pyproject.toml index b0a618505..5bfd43795 100644 --- a/integrations/weaviate/pyproject.toml +++ b/integrations/weaviate/pyproject.toml @@ -54,6 +54,9 @@ test-cov = "coverage run -m pytest {args:tests}" cov-report = ["- coverage combine", "coverage report"] cov = ["test-cov", "cov-report"] docs = ["pydoc-markdown pydoc/config.yml"] +diff = [ + "git --no-pager diff $(git tag -l --sort=-creatordate \"integrations/weaviate-v*\" | head -n 1)..main ." +] [[tool.hatch.envs.all.matrix]] python = ["3.8", "3.9", "3.10", "3.11", "3.12"]