forked from Maxteabag/sqlit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (134 loc) · 3.36 KB
/
pyproject.toml
File metadata and controls
147 lines (134 loc) · 3.36 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sqlit-tui"
version = "0.5.1"
description = "A terminal UI for SQL Server, PostgreSQL, MySQL, SQLite, and Oracle"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [
{ name = "Peter" }
]
keywords = ["sql", "server", "tui", "database", "mssql", "postgresql", "mysql", "sqlite", "oracle", "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",
"pyperclip>=1.8.2",
"keyring>=24.0.0",
]
[project.optional-dependencies]
all = [
"psycopg2-binary>=2.9.0",
"pyodbc>=5.0.0",
"mysql-connector-python>=8.0.0",
"mariadb>=1.1.0",
"oracledb>=2.0.0",
"duckdb>=0.9.0",
"requests>=2.0.0",
"libsql-client>=0.1.0",
"sshtunnel>=0.4.0",
"paramiko>=2.0.0,<4.0.0",
]
postgres = ["psycopg2-binary>=2.9.0"]
cockroachdb = ["psycopg2-binary>=2.9.0"]
mssql = ["pyodbc>=5.0.0"]
mysql = ["mysql-connector-python>=8.0.0"]
mariadb = ["mariadb>=1.1.0"]
oracle = ["oracledb>=2.0.0"]
duckdb = ["duckdb>=0.9.0"]
d1 = ["requests>=2.0.0"]
turso = ["libsql-client>=0.1.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",
]
dev = [
"pytest>=7.0",
"pytest-timeout>=2.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.0",
"build",
"ruff>=0.8.0",
"mypy>=1.0",
"pre-commit>=3.0",
]
[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",
"asyncio: async tests",
]
[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",
"libsql_client",
"sshtunnel"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pyodbc"
ignore_missing_imports = true