Skip to content

Commit

Permalink
add diff command to hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed May 29, 2024
1 parent e63b2b0 commit 22fad17
Show file tree
Hide file tree
Showing 28 changed files with 91 additions and 4 deletions.
4 changes: 4 additions & 0 deletions integrations/amazon_bedrock/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
4 changes: 3 additions & 1 deletion integrations/amazon_sagemaker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 4 additions & 0 deletions integrations/anthropic/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
4 changes: 4 additions & 0 deletions integrations/astra/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
3 changes: 3 additions & 0 deletions integrations/chroma/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/cohere/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/deepeval/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/elasticsearch/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/fastembed/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 4 additions & 0 deletions integrations/google_ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
4 changes: 4 additions & 0 deletions integrations/google_vertex/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
4 changes: 4 additions & 0 deletions integrations/gradient/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
3 changes: 3 additions & 0 deletions integrations/instructor_embedders/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion integrations/jina/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion integrations/langfuse/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 4 additions & 0 deletions integrations/llama_cpp/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
3 changes: 3 additions & 0 deletions integrations/mistral/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/mongodb_atlas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/nvidia/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/ollama/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 3 additions & 1 deletion integrations/opensearch/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/optimum/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/pgvector/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/pinecone/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/qdrant/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/ragas/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/unstructured/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions integrations/weaviate/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 22fad17

Please sign in to comment.