-
Notifications
You must be signed in to change notification settings - Fork 248
/
Copy pathpyproject.toml
133 lines (119 loc) · 2.85 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "sqllineage"
dependencies = [
"sqlparse==0.5.3",
"networkx>=2.4",
"sqlfluff==3.3.1",
"sqlalchemy>=2.0.0",
]
requires-python = ">=3.9"
authors = [
{ name = "Reata", email = "reddevil.hjw@gmail.com" },
]
maintainers = [
{ name = "Reata", email = "reddevil.hjw@gmail.com" },
]
description = "SQL Lineage Analysis Tool powered by Python"
readme = "README.md"
license = { file = "LICENSE" }
keywords = [
"metadata",
"sql",
"data-discovery",
"lineage",
"data-governance",
"data-lineage",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
dynamic = ["version"]
[project.optional-dependencies]
ci = [
"bandit",
"black",
"mypy",
"pytest",
"pytest-cov",
"ruff",
"tox",
"twine",
"wheel",
]
docs = [
"Sphinx>=3.2.0",
"sphinx_rtd_theme>=0.5.0",
]
[project.scripts]
sqllineage = "sqllineage.cli:main"
[project.gui-scripts]
sqllineage = "sqllineage.cli:main"
[project.urls]
Homepage = "https://reata.github.io/sqllineage/"
Documentation = "https://sqllineage.readthedocs.io/en/latest/"
Repository = "https://github.com/reata/sqllineage.git"
Issues = "https://github.com/reata/sqllineage/issues"
Changelog = "https://github.com/reata/sqllineage/releases"
[tool.setuptools.packages.find]
include = ["sqllineage*"]
[tool.setuptools.package-data]
"sqllineage.build" = [
"*",
"**/**/*"
]
"sqllineage.data" = [
"**/*",
]
[tool.setuptools.dynamic]
version = { attr = "sqllineage.VERSION" }
[tool.tox]
requires = ["tox>=4.19"]
env_list = ["3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.tox.env_run_base]
deps = [".[ci]"]
commands = [
["black", ".", "--check", "--diff"],
["ruff", "check", "."],
["bandit", "-r", "sqllineage"],
["mypy"],
["pytest", "--cov"],
]
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = [
"E",
"F",
"A", # builtins
"G", # logging format
"I", # import order
]
ignore = [
"A005", # stdlib-module-shadowing, we have modules like parser, copy, select, io violating this rule
]
[tool.mypy]
files = "sqllineage"
ignore_missing_imports = true
disallow_untyped_calls = true
warn_return_any = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
[tool.coverage.run]
source = ["sqllineage"]