-
Notifications
You must be signed in to change notification settings - Fork 347
Expand file tree
/
Copy pathhatch.toml
More file actions
100 lines (91 loc) · 2.77 KB
/
Copy pathhatch.toml
File metadata and controls
100 lines (91 loc) · 2.77 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
[version]
path = "src/dbt/adapters/snowflake/__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",
]
dependencies = [
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git@main",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git@1.latest#subdirectory=core",
"ddtrace==2.3.0",
"ipdb~=0.13.13",
"pre-commit~=3.7.0",
"pytest>=7.0,<8.0",
"pytest-csv~=3.0",
"chardet~=6.0",
"pytest-dotenv~=0.5.2",
"pytest-xdist~=3.6",
"tox~=4.16", # does this pin deps transitively?
]
[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-snowflake-dev .",
"docker run --rm -it --name dbt-snowflake-dev -v $(pwd):/opt/code dbt-snowflake-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_snowflake-*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-snowflake",
]
check-sdist = [
"check-wheel-contents dist/*.whl --ignore W007,W008",
"find ./dist/dbt_snowflake-*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/",
"pip freeze | grep dbt-snowflake",
]
docker-prod = "docker build -f docker/Dockerfile -t dbt-snowflake ."
[envs.ci]
pre-install-commands = [
"pip install git+https://github.com/dbt-labs/dbt-common.git",
"pip install -e ../dbt-adapters",
"pip install git+https://github.com/dbt-labs/dbt-core.git@1.latest#subdirectory=core",
"pip install -e ../dbt-adapters",
"pip install -e ../dbt-tests-adapter",
]
dependencies = [
"ddtrace==2.3.0",
"pytest>=7.0,<8.0",
"pytest-csv~=3.0",
"chardet~=6.0",
"pytest-xdist~=3.6",
"tox~=4.16", # does this pin deps transitively?
]
[envs.ci.scripts]
unit-tests = "python -m pytest tests/unit --ddtrace"
integration-tests = "python -m pytest tests/functional --ddtrace"
[envs.cd]
pre-install-commands = []
dependencies = [
"dbt-tests-adapter>=1.11.0,<2.0",
"ddtrace==2.3.0",
"pytest>=7.0,<8.0",
"pytest-csv~=3.0",
"chardet~=6.0",
"pytest-xdist~=3.6",
"tox~=4.16", # does this pin deps transitively?
]
[envs.cd.scripts]
unit-tests = "python -m pytest tests/unit --ddtrace"
integration-tests = "python -m pytest tests/functional --ddtrace"