forked from dbt-labs/dbt-adapters
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhatch.toml
More file actions
111 lines (102 loc) · 3.01 KB
/
hatch.toml
File metadata and controls
111 lines (102 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[version]
path = "src/dbt/adapters/redshift/__version__.py"
[build.targets.wheel]
packages = ["src/dbt"]
sources = ["src"]
[envs.default]
pre-install-commands = [
"pip install -e ../dbt-adapters",
"pip install -e ../dbt-tests-adapter",
"pip install -e ../dbt-postgres",
]
dependencies = [
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"ddtrace==2.3.0",
"freezegun",
"ipdb~=0.13.13",
"pre-commit==3.7.0",
"pytest-csv~=3.0",
"pytest-dotenv",
"pytest-logbook~=1.2",
"pytest-mock",
"pytest-xdist",
"pytest>=7.0,<8.0",
"requests",
]
[envs.default.scripts]
setup = [
"pre-commit install",
"cp -n test.env.example test.env",
]
code-quality = "pre-commit run --all-files"
unit-tests = "python -m pytest {args:tests/unit}"
integration-tests = "python -m pytest {args:tests/functional}"
docker-dev = [
"docker build -f docker/dev.Dockerfile -t dbt-redshift-dev .",
"docker run --rm -it --name dbt-redshift-dev -v $(shell pwd):/opt/code dbt-redshift-dev",
]
[envs.build]
detached = true
dependencies = [
"wheel",
"twine",
"check-wheel-contents",
]
[envs.build.scripts]
check-all = [
"- check-wheel",
"- check-sdist",
]
check-wheel = [
"twine check dist/*",
"find ./dist/dbt_redshift-*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-redshift",
]
check-sdist = [
"check-wheel-contents dist/*.whl --ignore W007,W008",
"find ./dist/dbt_redshift-*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-redshift",
]
docker-prod = "docker build -f docker/Dockerfile -t dbt-redshift ."
[envs.ci]
pre-install-commands = [
"pip install -e ../dbt-adapters",
"pip install -e ../dbt-tests-adapter",
"pip install -e ../dbt-postgres",
]
dependencies = [
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"ddtrace==2.3.0",
"flaky",
"freezegun",
"pytest-csv~=3.0",
"pytest-logbook~=1.2",
"pytest-mock",
"pytest-xdist",
"pytest>=7.0,<8.0",
"requests",
]
[envs.ci.scripts]
unit-tests = "python -m pytest tests/unit --ddtrace"
integration-tests = 'python -m pytest tests/functional -m "not flaky" --ddtrace'
integration-tests-flaky = "python -m pytest tests/functional -m flaky -n1 --ddtrace"
[envs.cd]
pre-install-commands = []
dependencies = [
"dbt-tests-adapter>=1.11.0,<2.0",
"ddtrace==2.3.0",
"flaky",
"freezegun",
"pytest-csv>=3.0,<4.0",
"pytest-logbook>=1.2,<2.0",
"pytest-mock",
"pytest-xdist",
"pytest>=7.0,<8.0",
"requests",
]
[envs.cd.scripts]
unit-tests = "python -m pytest tests/unit --ddtrace"
integration-tests = 'python -m pytest tests/functional -m "not flaky" --ddtrace'
integration-tests-flaky = "python -m pytest tests/functional -m flaky -n1 --ddtrace"