Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (77 loc) · 2 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (77 loc) · 2 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sqlquality"
description = "Measure dbt model performance and complexity, and gate changes on the delta."
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [{name = "Hans Lemm"}]
keywords = ["dbt", "sql", "lint", "complexity", "data-engineering"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Database",
]
dynamic = ["version"]
dependencies = [
"sqlglot>=30.12,<31",
"typer>=0.12",
"rich>=13",
"pyyaml>=6",
"sqlfluff>=4,<5",
]
[project.urls]
Homepage = "https://github.com/hanslemm/sqlquality"
Issues = "https://github.com/hanslemm/sqlquality/issues"
[project.scripts]
sqlquality = "sqlquality.cli:main"
[project.optional-dependencies]
llm = ["anthropic>=0.40"]
postgres = ["psycopg[binary]>=3.1"]
warehouse = ["psycopg[binary]>=3.1"]
[dependency-groups]
dev = [
"pytest>=8",
"ruff>=0.6",
"mypy>=1.11",
"types-PyYAML",
]
[tool.hatch.version]
path = "src/sqlquality/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/sqlquality"]
[tool.hatch.build.targets.sdist]
only-include = [
"src",
"tests",
"README.md",
"LICENSE",
".pre-commit-hooks.yaml",
"pyproject.toml",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"integration: requires a live Postgres (opt in with SQLQUALITY_TEST_DSN or `-m integration`)",
]
addopts = "-m 'not integration'"
[tool.ruff]
line-length = 100
[tool.mypy]
python_version = "3.11"
[[tool.mypy.overrides]]
module = ["sqlfluff.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["anthropic.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["psycopg.*"]
ignore_missing_imports = true