Skip to content

Commit

Permalink
split out dev and test requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Nov 20, 2023
1 parent f4cfae6 commit 8989282
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.PHONY: dev
dev: ## Installs adapter in develop mode along with development dependencies
pip install -e .[dev] && pre-commit install
pip install -e .[dev,test] && pre-commit install

.PHONY: dev-uninstall
dev-uninstall: ## Uninstalls all packages while maintaining the virtual environment
Expand Down
13 changes: 1 addition & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,40 +37,29 @@ dependencies = [
"agate",
]
optional-dependencies.dev = [
"dbt-tests-adapter@git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-tests-adapter&subdirectory=tests/adapter",
"black~=23.0",
"flake8",
"flaky",
"freezegun",
"ipdb",
"mypy~=1.0",
"pip-tools",
"pre-commit",
"pre-commit-hooks",
"pytest",
"pytest-csv",
"pytest-dotenv",
"pytest-xdist",
"pytz",
"tox~=4.0",
"types-pytz",
"types-requests",
]
optional-dependencies.test = [
"dbt-tests-adapter@git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-tests-adapter&subdirectory=tests/adapter",
"black~=23.0",
"ddtrace",
"flake8",
"flaky",
"freezegun",
"pytest",
"pytest-csv",
"pytest-dotenv",
"pytest-logbook",
"pytest-xdist",
"pytz",
"tox~=4.0",
"types-pytz",
"types-requests",
]

[tool.black]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ passenv =
PYTEST_ADDOPTS
commands = {envpython} -m pytest {posargs} tests/unit
deps =
-e.[dev]
-e.[dev,test]

[testenv:{integration,py38,py39,py310,py311,py}-{snowflake}]
description = adapter plugin integration testing
Expand Down

0 comments on commit 8989282

Please sign in to comment.