-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpyproject.toml
More file actions
175 lines (151 loc) · 4.74 KB
/
Copy pathpyproject.toml
File metadata and controls
175 lines (151 loc) · 4.74 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
[project]
name = "dbt-exasol"
version = "1.12.0"
description = "Adapter to dbt-core for warehouse Exasol"
authors = [
{ name = "Torsten Glunde", email = "torsten.glunde@alligator-company.com" },
{ name = "Ilija Kutle", email = "ilija.kutle@alligator-company.com" },
]
license = { text = "GPL-3.0-or-later" }
readme = "README.md"
requires-python = ">=3.11,<3.15"
dependencies = [
"pyexasol>=2",
"protobuf>=6.0,<8.0",
"dbt-adapters>=1.24.5",
"dbt-core>=1.12.0,<1.13",
"dbt-core-experimental-parser>=2.0.0a4,<3",
]
[project.urls]
Homepage = "https://alligatorcompany.gitlab.io/dbt-exasol"
Repository = "https://github.com/tglunde/dbt-exasol"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
prerelease = "explicit"
# sphinx-basic-ng 1.0.0b2 is the only published version of this package (a furo
# transitive dep); explicitly list it here so uv's "explicit" pre-release mode
# allows it without globally enabling pre-releases for all packages.
constraint-dependencies = ["sphinx-basic-ng>=1.0.0b2"]
[tool.hatch.build.targets.wheel]
packages = ["dbt"]
[dependency-groups]
dev = [
"black>=22.8,<27.0",
"dbt-tests-adapter>=1.20.0",
"exasol-integration-test-docker-environment>=4.3.0",
# Pinned <7: toolbox 10.x removed `_version` from exasol.toolbox.nox._shared
# which noxfile.py imports; migration to the new API is a follow-up task.
"exasol-toolbox>=5.1.0,<7",
"exceptiongroup>=1.1.1",
"freezegun>=1.2.2",
"ipykernel>=6.25.0",
"nox>=2024.4.15",
"poetry>=2.3.1",
"pylint>=2.15.8",
"pytest-cov>=4.0.0",
"pytest-dotenv>=0.5.2",
"pytest-parallel>=0.1.1",
"pytest-xdist>=3.3.1",
"pytest>=9.0.2",
"python-dotenv>=1.2.1",
"ruff>=0.14.8",
"sqlfluff>=3.5.0",
"tox-uv>=1.28.1",
"tox>=4.30.3",
]
[tool.coverage.run]
# Use "dbt" as the source directory so coverage XML generates paths like
# "adapters/exasol/column.py" which SonarCloud can match when --sonar-sources=dbt
source = ["dbt"]
relative_files = true
omit = [
"*/site-packages/*",
"dbt/__init__.py",
"dbt/adapters/__init__.py",
"dbt/adapters/exasol/__init__.py",
"dbt/adapters/exasol/version.py",
"dbt/include/__init__.py",
"dbt/include/exasol/__init__.py",
]
[tool.coverage.report]
omit = ["*/__init__.py"]
[tool.coverage.xml]
output = "ci-coverage.xml"
# Path remapping for combining coverage from different machines (CI runners)
# The first path in each list is the canonical relative path used in reports
# Subsequent paths are patterns that may appear in .coverage files from CI
[tool.coverage.paths]
source = [
"dbt/",
# GitHub Actions runner paths
"/home/runner/work/dbt-exasol/dbt-exasol/dbt/",
"/home/runner/work/*/dbt/",
# Generic patterns for other CI environments
"*/dbt-exasol/dbt/",
]
[tool.black]
line-length = 120
verbose = false
include = "\\.pyi?$"
[tool.isort]
profile = "black"
force_grid_wrap = 2
[tool.pylint.master]
fail-under = 5.0
ignore = []
[tool.pylint.format]
max-line-length = 120
max-module-lines = 800
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.format]
# Ruff format automatically removes trailing whitespace by default
# NOTE: Project currently uses black for formatting (via nox format:check/fix)
# This configuration is for potential future migration to ruff format
# To use: run `ruff format` instead of `black`
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes (bugs, undefined names)
# Note: "I" (isort) is NOT selected because project uses standalone isort in nox sessions
]
ignore = []
unfixable = []
[tool.ruff.lint.per-file-ignores]
# Exclude F841 (unused variable) and E501 (line too long) for test files
"tests/**/*.py" = ["F841", "E501", "F405", "W291", "W293"]
[tool.ruff.lint.isort]
# Import sorting is handled by standalone isort (via nox format:check/fix)
# Ruff's isort implementation differs slightly from standalone isort with black profile
# in how it groups 'from X import Y' statements, so ruff's "I" rules are disabled above.
# This configuration is kept for potential future migration to ruff-only workflow.
known-first-party = ["dbt"]
lines-after-imports = 2
split-on-trailing-comma = true
[tool.mypy]
warn_unused_ignores = false
warn_return_any = false
no_implicit_optional = true
check_untyped_defs = false
disallow_untyped_calls = false
disallow_untyped_defs = false
ignore_errors = false
[[tool.mypy.overrides]]
module = ["tests.*"]
ignore_errors = true
[[tool.mypy.overrides]]
module = ["agate", "agate.*", "dateutil", "dateutil.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["dbt.adapters.exasol.*"]
warn_return_any = false
ignore_errors = false
# Sonar configuration is in sonar-project.properties