-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (111 loc) · 3.07 KB
/
pyproject.toml
File metadata and controls
124 lines (111 loc) · 3.07 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
112
113
114
115
116
117
118
119
120
121
122
123
124
[project]
name = "dbt-af"
dynamic = ["version"]
description = "Distibuted dbt runs on Apache Airflow"
authors = [
{ name = "Nikita Yurasov", email = "nikitayurasov@toloka.ai" },
{ name = "Igor Safonov", email = "igsaf@toloka.ai" },
{ name = "Evgeny Ermakov", email = "jkermakov@toloka.ai" },
{ name = "Leonid Kozhinov", email = "lkozhinov@toloka.ai" }
]
readme = "README.md"
license = "Apache-2.0"
keywords = ["python", "airflow", "dbt"]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.10,<3.13"
dependencies = [
"attrs >=23.1",
"apache-airflow >=2.6,<3",
"apache-airflow-providers-cncf-kubernetes >=7.0.0",
"pydantic >=1.10,<3.0.0",
"cachetools >=5.3,<7",
"croniter >=3.0",
"typer >=0.9",
"dbt-core >=1.7,<2",
"packaging >=21.0",
"virtualenv >=20.27.0", # https://github.com/pypa/virtualenv/pull/2782
"pytest >=7.4.0",
"pytest-env >=1.0.0",
]
[tool.hatch.version]
path = "dbt_af/__init__.py"
[dependency-groups]
dev = [
"pytest==8.4.2",
"pytest-env==1.1.5",
"pytest-cov==4.1.0",
"ipython==8.37.0",
"freezegun>=1.5.1,<1.6.0",
{ include-group = "examples" },
{ include-group = "lint" },
{ include-group = "pins" }
]
examples = [
"dbt-postgres>=1.7.0,<2",
"psycopg2-binary>=2.9.0,<2.10; sys_platform == 'linux'",
]
lint = [
"ruff==0.13.1",
"pre-commit==3.8.0",
"shandy-sqlfmt[jinjafmt]==0.27.0",
]
pins = [
"flask_limiter>3,<4,!=3.13", # temporarily due to https://github.com/alisaifee/flask-limiter/issues/479
"click<8.3.0"
]
[project.optional-dependencies]
mcd = [
"airflow-mcd>=0.3.3,<0.4.0",
"pycarlo>=0.9",
"setuptools",
]
tableau = [
"tableauserverclient>=0.25.0,<0.26.0"
]
all = [
"dbt-af[mcd]",
"dbt-af[tableau]"
]
[project.urls]
Homepage = "https://github.com/Toloka/dbt-af"
Documentation = "https://github.com/Toloka/dbt-af/blob/main/examples/README.md"
"Release Notes" = "https://github.com/Toloka/dbt-af/blob/main/CHANGELOG.md"
"Source Code" = "https://github.com/Toloka/dbt-af"
[project.scripts]
dbt-af-manifest-tests = "dbt_af_functional_tests:cli"
mini_dbt_project_generator = "scripts.mini_dbt_project_generator:cli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
packages = [
"/dbt_af",
"/dbt_af_functional_tests",
"/scripts",
]
[tool.ruff]
# https://beta.ruff.rs/docs
line-length = 120
lint.select = [
# https://beta.ruff.rs/docs/rules
"F", # pyflakes
"E", # pycodestyle (errors)
"W", # pycodestyle (warnings) eg. trailing/leading whitespaces
"Q", # quotes
"I001", # unsorted imports (isort)
"TID", # tidy-imports
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
# https://beta.ruff.rs/docs/settings/#isort
[tool.ruff.format]
quote-style = "single"
docstring-code-format = true