-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
125 lines (102 loc) · 2.85 KB
/
pyproject.toml
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[project]
name = "dbt-pumpkin"
description = ""
authors = [
{name = "Denis Kokorin", email = "[email protected]"}
]
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.9"
dependencies = [
"ruamel-yaml>=0.17",
"click>=8.1.0"
]
dynamic = ["version"]
[project.urls]
"Source code" = "https://github.com/kokorin/dbt-pumpkin"
[project.scripts]
dbt-pumpkin = "dbt_pumpkin.cli:main"
[tool.hatch]
[tool.hatch.version]
source = "versioningit"
[tool.hatch.build]
exclude = [
"/.github",
"/.dbt_project",
"/scripts",
"/tests",
"/.pre-commit-config.yaml",
"/.gitignore"
]
artifacts = ["dbt_pumpkin/version.py"]
[tool.hatch.build.hooks.version]
path = "dbt_pumpkin/version.py"
[tool.hatch.envs.default]
dependencies = [
"pytest",
"dbt-core~=1.9.0",
"dbt-duckdb~=1.9.0"
]
python = "3.12"
[tool.hatch.envs.default.env-vars]
EXPECTED_PYTHON_VERSION = "3.12"
EXPECTED_DBT_VERSION = "1.9"
DBT_PROJECT_DIR = ".dbt_project"
DBT_PROFILES_DIR = ".dbt_project"
[tool.hatch.envs.test]
python = "3.11"
dependencies = [
"pytest",
"dbt-core~={matrix:dbt}.0",
"dbt-duckdb~={matrix:dbt}.0"
]
installer = "uv"
[tool.hatch.envs.test.env-vars]
EXPECTED_PYTHON_VERSION = "3.11"
EXPECTED_DBT_VERSION = "{matrix:dbt}"
DBT_PROJECT_DIR = ".dbt_project"
DBT_PROFILES_DIR = ".dbt_project"
[[tool.hatch.envs.test.matrix]]
dbt = ["1.5", "1.6", "1.7", "1.8", "1.9"]
[tool.hatch.envs.hatch-test]
extra-dependencies = [
"dbt-core~={matrix:dbt}.0",
"dbt-duckdb~={matrix:dbt}.0"
]
[tool.hatch.envs.hatch-test.scripts]
# To change cov-report script we have to re-define all other scripts too
run = "pytest{env:HATCH_TEST_ARGS:} {args}" # default
run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}" # default
cov-combine = "coverage combine" # default
cov-report = ["coverage report", "coverage xml"] # xml added
[tool.hatch.envs.hatch-test.env-vars]
EXPECTED_PYTHON_VERSION = "{matrix:python}"
EXPECTED_DBT_VERSION = "{matrix:dbt}"
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.9", "3.10", "3.11"]
dbt = ["1.5", "1.6", "1.7", "1.8"]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.12"]
dbt = ["1.7", "1.8", "1.9"]
[tool.coverage.report]
include = ["dbt_pumpkin/**"]
[tool.versioningit]
[tool.versioningit.vcs]
method = "git"
default-tag = "v0.0.0"
[tool.versioningit.format]
distance = "{base_version}.post{distance}.dev{author_date:%Y%m%d}"
[tool.yamlfix]
explicit_start = false
whitelines = 1
sequence_style = "keep_style"
[tool.pytest.ini_options]
filterwarnings = [
"ignore:.*PyType_Spec with a metaclass that has custom tp_new.*:DeprecationWarning",
"ignore:.*datetime.datetime.utcnow\\(\\) is deprecated.*:DeprecationWarning",
"ignore:.*method is deprecated, use 'warning' instead.*:DeprecationWarning",
"ignore:.*invalid escape sequence.*:DeprecationWarning"
]
[build-system]
requires = ["hatchling", "versioningit"]
build-backend = "hatchling.build"