-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathpyproject.toml
More file actions
174 lines (159 loc) · 4.29 KB
/
pyproject.toml
File metadata and controls
174 lines (159 loc) · 4.29 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "sqlit-tui"
description = "A terminal UI for SQL Server, PostgreSQL, MySQL, SQLite, Oracle, and more"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Peter" }
]
keywords = ["sql", "server", "tui", "database", "mssql", "postgresql", "mysql", "sqlite", "oracle", "firebird", "terminal"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Database",
]
dependencies = [
"textual[syntax]>=6.10.0",
"textual-fastdatatable>=0.14.0",
"pyperclip>=1.8.2",
"keyring>=24.0.0",
"docker>=7.0.0",
"sqlparse>=0.5.0",
]
dynamic = ["version"]
[project.optional-dependencies]
all = [
"psycopg2-binary>=2.9.0",
"mssql-python>=1.1.0",
"mysql-connector-python>=9.1.0", # min avoids known CVEs
"mariadb>=1.1.0",
"oracledb>=2.0.0",
"duckdb>=1.1.0", # min avoids known CVEs
"clickhouse-connect>=0.7.0",
"requests>=2.32.4", # min avoids known CVEs
"libsql>=0.1.0",
"firebirdsql>=1.3.5",
"sshtunnel>=0.4.0",
"paramiko>=2.0.0,<4.0.0",
"snowflake-connector-python>=3.7.0",
]
postgres = ["psycopg2-binary>=2.9.0"]
cockroachdb = ["psycopg2-binary>=2.9.0"]
mssql = ["mssql-python>=1.1.0"]
mysql = ["mysql-connector-python>=9.1.0"] # min avoids known CVEs
mariadb = ["mariadb>=1.1.0"]
oracle = ["oracledb>=2.0.0"]
duckdb = ["duckdb>=1.1.0"] # min avoids known CVEs
clickhouse = ["clickhouse-connect>=0.7.0"]
d1 = ["requests>=2.32.4"] # min avoids known CVEs
turso = ["libsql>=0.1.0"]
firebird = ["firebirdsql>=1.3.5"]
snowflake = ["snowflake-connector-python>=3.7.0"]
ssh = [
"sshtunnel>=0.4.0",
"paramiko>=2.0.0,<4.0.0",
]
test = [
"pytest>=7.0",
"pytest-timeout>=2.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.0",
"fakesnow>=0.0.1",
]
dev = [
"pytest>=7.0",
"pytest-timeout>=2.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.0",
"pytest-benchmark>=4.0",
"Faker>=28.0",
"build",
"ruff>=0.8.0",
"mypy>=1.0",
"pre-commit>=3.0",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "sqlit/_version.py"
[tool.ruff]
target-version = "py310"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "I", "UP"] # pycodestyle, pyflakes, isort, pyupgrade
[project.scripts]
sqlit = "sqlit.cli:main"
[project.urls]
Homepage = "https://github.com/Maxteabag/sqlit"
Repository = "https://github.com/Maxteabag/sqlit"
Issues = "https://github.com/Maxteabag/sqlit/issues"
[tool.hatch.build.targets.wheel]
packages = ["sqlit"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"sqlite: SQLite database tests",
"mssql: SQL Server database tests",
"postgresql: PostgreSQL database tests",
"mysql: MySQL database tests",
"oracle: Oracle database tests",
"firebird: Firebird database tests",
"clickhouse: ClickHouse database tests",
"asyncio: async tests",
"integration: integration tests (may require external services)",
]
[tool.coverage.run]
source = ["sqlit"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_ignores = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_redundant_casts = true
strict_optional = true
exclude = ["tests/"]
namespace_packages = true
[[tool.mypy.overrides]]
module = [
"mysql.connector",
"mariadb",
"oracledb",
"duckdb",
"clickhouse_connect",
"libsql",
"snowflake.connector",
"sshtunnel",
"docker",
"docker.errors",
"pyarrow",
"textual_fastdatatable"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "mssql_python"
ignore_missing_imports = true