-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (122 loc) · 3.9 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (122 loc) · 3.9 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "dbt-sqlserver"
description = "A Microsoft SQL Server adapter plugin for dbt"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "Mikael Ene" },
{ name = "Anders Swanson" },
{ name = "Sam Debruyn" },
{ name = "Cor Zuurmond" },
{ name = "Cody Scott" },
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"dbt-core>=1.12.0,<2.0",
"dbt-common>=1.22.0,<2.0",
"dbt-adapters>=1.24.5,<2.0",
# pyodbc, mssql-python, adbc-driver-manager
# are listed under [project.optional-dependencies]
]
dynamic = ["version"]
[project.optional-dependencies]
azure = [
"azure-identity>=1.12.0",
]
pyodbc = [
"pyodbc>=5.2.0",
]
mssql = [
"mssql-python>=1.7.1",
]
adbc = [
"adbc-driver-manager>=1.0.0",
"pyarrow>=14.0.0",
# The driver binary itself
# (adbc-driver-mssql) is not on PyPI -- install it via `dbc`.
]
[dependency-groups]
dev = [
"dbt-tests-adapter>=1.20.0,<2.0",
"azure-identity>=1.12.0",
"pyodbc>=5.2.0",
"mssql-python>=1.7.1",
"adbc-driver-manager>=1.0.0",
"pyarrow>=14.0.0",
"build",
"bumpversion",
"flaky",
"freezegun>=1.5.0,<2.0",
"ipdb",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-csv",
"pytest-dotenv",
"pytest-xdist",
"pytz",
"ruff",
"tox>=3.13",
"twine",
# Pinned exactly: this is the single source of the ty version, read by the
# pre-commit hook, `make ty` and the Type check workflow alike.
"ty==0.0.64",
]
[project.urls]
"Setup & configuration" = "https://docs.getdbt.com/reference/warehouse-profiles/mssql-profile"
"Documentation & usage" = "https://docs.getdbt.com/reference/resource-configs/mssql-configs"
"Changelog" = "https://github.com/dbt-msft/dbt-sqlserver/blob/master/CHANGELOG.md"
"Issue Tracker" = "https://github.com/dbt-msft/dbt-sqlserver/issues"
"Source" = "https://github.com/dbt-msft/dbt-sqlserver"
[tool.setuptools.dynamic]
version = { attr = "dbt.adapters.sqlserver.__version__.version" }
[tool.setuptools.packages.find]
include = ["dbt", "dbt.*"]
namespaces = true
[tool.setuptools.package-data]
"dbt" = ["include/**/*.sql", "include/**/*.yml", "include/**/*.md"]
"dbt.adapters.sqlserver" = ["py.typed"]
[tool.uv]
link-mode = "copy"
environments = "python_version >= '3.11'"
[tool.ruff]
line-length = 99
target-version = "py311"
[tool.ruff.lint]
# E/W = pycodestyle, F = pyflakes (together: flake8), I = isort,
# TID252 = no relative imports (absolufy-imports); unused-import
# removal (pycln) is F401, included in F
select = ["E", "F", "W", "I", "TID252"]
[tool.ruff.lint.isort]
known-first-party = ["dbt"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ty.environment]
# Check against the oldest interpreter the adapter is built for, matching
# ruff's target-version, rather than whichever version .venv happens to hold.
python-version = "3.11"
[tool.ty.src]
# The adapter package only; the test suite is not type checked.
include = ["dbt/adapters"]
[tool.ty.rules]
# `dbt` is a namespace split across distributions: dbt-core and dbt-adapters
# own `dbt/` and `dbt/adapters/` in site-packages, this repo contributes
# `dbt/adapters/sqlserver` from the project root, and the two halves are joined
# at runtime by the editable install's import hook. No static checker can
# follow that, so every `dbt.*` import reads as unresolvable here.
unresolved-import = "ignore"