From d49f40ece02e2895bca1612bd4a728352507df79 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Wed, 12 Jun 2024 13:08:47 +0800 Subject: [PATCH] mark poetry groups of dev and lint as optional --- .github/workflows/api-tests.yml | 2 +- api/pyproject.toml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml index 1f9d5036ce8475..e2ef85431d0a11 100644 --- a/.github/workflows/api-tests.yml +++ b/.github/workflows/api-tests.yml @@ -108,7 +108,7 @@ jobs: run: poetry check -C api - name: Install dependencies - run: poetry install -C api + run: poetry install -C api --with dev - name: Run Unit tests run: poetry run -C api bash dev/pytest/pytest_unit_tests.sh diff --git a/api/pyproject.toml b/api/pyproject.toml index 8fbbb8cadb3c0a..b3093143a2fe74 100644 --- a/api/pyproject.toml +++ b/api/pyproject.toml @@ -179,6 +179,8 @@ google-cloud-aiplatform = "1.49.0" vanna = {version = "0.5.5", extras = ["postgres", "mysql", "clickhouse", "duckdb"]} kaleido = "0.2.1" +[tool.poetry.group.dev] +optional = true [tool.poetry.group.dev.dependencies] coverage = "~7.2.4" @@ -187,6 +189,9 @@ pytest-benchmark = "~4.0.0" pytest-env = "~1.1.3" pytest-mock = "~3.14.0" +[tool.poetry.group.lint.dependencies] +optional = true + [tool.poetry.group.lint.dependencies] ruff = "~0.4.8" dotenv-linter = "~0.5.0"