-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (142 loc) · 3.37 KB
/
Copy pathpyproject.toml
File metadata and controls
155 lines (142 loc) · 3.37 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sqlstream"
version = "0.6.3"
description = "A lightweight SQL query engine for data exploration with lazy evaluation and intelligent optimizations"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "SQLStream Team"},
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
# Start with no dependencies (pure Python for Phases 0-2)
dependencies = []
[project.optional-dependencies]
cli = [
"click>=8.0.0",
"rich>=13.0.0",
"textual>=0.40.0",
]
interactive = [
"click>=8.0.0",
"rich>=13.0.0",
"textual>=0.40.0",
"tree-sitter>=0.21.3",
"tree-sitter-sql>=0.3.5",
]
parquet = ["pyarrow>=10.0.0"]
pandas = [
"pandas>=2.0.0",
"pyarrow>=14.0.0",
]
http = ["httpx>=0.27.0"]
html = [
"lxml>=4.8.0",
"pandas>=2.0.0",
"html5lib>=1.1",
"beautifulsoup4>=4.14.3",
]
s3 = ["s3fs>=2023.1.0"]
bloom = []
duckdb = [
"duckdb>=1.0.0",
]
all = [
"lxml>=4.8.0",
"html5lib>=1.1",
"beautifulsoup4>=4.14.3",
"pandas>=2.0.0",
"pyarrow>=14.0.0",
"httpx>=0.27.0",
"s3fs>=2023.1.0",
"click>=8.0.0",
"rich>=13.0.0",
"textual>=0.40.0",
"tree-sitter>=0.21.3",
"tree-sitter-sql>=0.3.5",
"duckdb>=1.0.0",
]
dev = [
"build>=1.2.2.post1",
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mkdocs-material-extensions>=1.3.0",
"mkdocstrings[python]>=0.24.0", # Auto-generate API docs from docstrings
"mkdocstrings-python>=1.7.0", # Python handler for mkdocstrings
]
[project.scripts]
sqlstream = "sqlstream.cli.main:cli"
[tool.hatch.build.targets.wheel]
packages = ["sqlstream"]
# Ruff configuration (modern linter/formatter)
[tool.ruff]
line-length = 100
target-version = "py310"
[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.format]
quote-style = "double"
indent-style = "space"
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--strict-markers",
"--cov=sqlstream",
"--cov-report=term-missing",
"--cov-report=html",
]
# Only use asyncio backend for anyio tests
anyio_default_backend = "asyncio"
# MyPy configuration
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false # Start lenient, tighten later
ignore_missing_imports = true
# Coverage configuration
[tool.coverage.run]
source = ["sqlstream"]
omit = ["*/tests/*", "*/test_*.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[dependency-groups]
dev = [
"ruff>=0.14.8",
]