-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (135 loc) · 4.23 KB
/
Copy pathpyproject.toml
File metadata and controls
152 lines (135 loc) · 4.23 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
[build-system]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "vowl"
dynamic = ["version"]
description = "A SQL-powered data quality validation library for pandas and spark DataFrames."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
keywords = ["data-quality", "data-validation", "data-contract", "odcs", "ibis", "sql", "pandas", "polars", "pyspark", "duckdb", "schema-validation"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database",
]
# Core dependencies (always installed)
dependencies = [
"ibis-framework[duckdb]>=11.0.0",
"jsonpath-ng>=1.7.0",
"jsonschema>=4.26.0",
"narwhals>=2.17.0",
"pyarrow>=14.0.0",
"pyyaml>=5.4.0",
"requests>=2.32.5",
"sqlglot[c]>=28.6.0",
]
[project.optional-dependencies]
# Spark (default) — Spark Connect capable.
# pyspark[connect] adds grpcio/grpcio-status so Spark Connect DataFrames/Sessions
# (pyspark.sql.connect.*) work out of the box, not just classic Spark (#39). The
# [connect] extra only exists on pyspark >= 3.4, hence the higher floor.
spark = [
"ibis-framework[pyspark]>=11.0.0",
"pyspark[connect]>=3.4.0",
]
# Classic Spark only — no Spark Connect / grpc. Use this on older runtimes
# (e.g. managed clusters pinned to pyspark 3.0–3.3) where bumping to 3.4+ is not
# an option. Spark Connect DataFrames are not supported under this extra.
spark-classic = [
"ibis-framework[pyspark]>=11.0.0",
"pyspark>=3.0.0",
]
# Everything (base + spark + aws)
all = [
"boto3>=1.42.38",
"ibis-framework[pyspark]>=11.0.0",
"pyspark[connect]>=3.4.0",
]
[project.urls]
Homepage = "https://github.com/govtech-data-practice/vowl"
Repository = "https://github.com/govtech-data-practice/vowl"
Issues = "https://github.com/govtech-data-practice/vowl/issues"
Documentation = "https://pypi.org/project/vowl/"
[tool.setuptools]
license-files = ["LICENSE"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"vowl.contracts.models" = ["README.md", "schemas/*.json"]
[tool.setuptools_scm]
# Version is derived from the latest Git tag (e.g. v1.0.0 -> 1.0.0)
# Untagged commits get dev versions like 1.0.1.dev3+gabcdef
version_scheme = "guess-next-dev"
local_scheme = "no-local-version"
[dependency-groups]
dev = [
"bandit>=1.9.3",
"boto3>=1.42.80",
"datamodel-code-generator>=0.53.0",
"ibis-framework[mssql,mysql,oracle,postgres]>=11.0.0",
"ipykernel>=7.1.0",
"matplotlib>=3.10.9",
"polars>=1.39.2",
"pyspark>=3.0.0",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"ruff>=0.8.0",
"setuptools>=80.10.2",
"testcontainers>=4.14.1",
"ty>=0.0.52",
"zensical>=0.0.30",
]
lean-ci-test = [
"boto3>=1.42.38",
"ibis-framework[postgres]>=11.0.0",
# pyspark[connect] pulls in grpcio/grpcio-status so the Spark Connect
# detection tests (tests/test_spark_connect_detection.py) actually run in
# CI instead of being skipped by their grpc importorskip guard (#39).
"pyspark[connect]>=3.4.0",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"setuptools>=80.10.2",
]
[tool.pytest.ini_options]
markers = [
"docker_integration: tests that require Docker or testcontainers",
]
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by formatter
]
[tool.ruff.lint.isort]
known-first-party = ["vowl"]
[tool.coverage.run]
source = ["vowl"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]