diff --git a/pyproject.toml b/pyproject.toml index 34649005..ebcb50cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,7 +52,7 @@ path = "dbt/adapters/postgres/__version__.py" [tool.hatch.envs.default] dependencies = [ "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git", - "dbt_common @ git+https://github.com/dbt-labs/dbt-common.git", + "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", ] [tool.hatch.envs.lint] @@ -81,20 +81,28 @@ all = "python -m mypy ." [tool.hatch.envs.unit-tests] dependencies = [ - # TODO: remove `dbt-core` dependencies from unit tests - "dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core", "freezegun", "pytest", "pytest-dotenv", "pytest-mock", "pytest-xdist", ] +extra-dependencies = [ + # TODO: remove `dbt-core` dependencies from unit tests + "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git", + "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", + "dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core", +] [tool.hatch.envs.unit-tests.scripts] all = "python -m pytest {args:tests/unit}" [tool.hatch.envs.integration-tests] template = "unit-tests" extra-dependencies = [ + # TODO: remove `dbt-core` dependencies from integration tests + "dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git", + "dbt-common @ git+https://github.com/dbt-labs/dbt-common.git", + "dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core", "dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git@setup-shared-tests#subdirectory=dbt-tests-adapter", ] [tool.hatch.envs.integration-tests.env-vars]