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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
|
[project]
name = "harlequin"
version = "2.5.1"
requires-python = ">=3.10"
description = "The SQL IDE for Your Terminal."
authors = [
{ name = "Ted Conbeer", email = "tconbeer@users.noreply.github.com" }
]
license = "MIT"
readme = "README.md"
keywords = ["sql", "tui", "ide", "textual", "harlequin"]
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
# textual and component libraries
"textual==6.4.0",
"textual-fastdatatable==0.14.0",
"textual-textarea==0.17.2",
# click
"click==8.1.8",
"rich-click==1.8.5",
# other deps
"duckdb>=0.8.0; python_version < '3.14'",
"shandy-sqlfmt>=0.28.2",
"platformdirs>=3.10,<5.0",
"tomlkit>=0.12.5,<0.14.0",
"questionary==2.0.1",
# ensure we install from wheels
"duckdb>=1.4.2; python_version >= '3.14'",
"pandas>=2.3; python_version >= '3.14'",
]
[project.optional-dependencies]
s3 = ["boto3==1.34.22"]
postgres = ["harlequin-postgres"]
mysql = ["harlequin-mysql"]
odbc = ["harlequin-odbc"]
bigquery = ["harlequin-bigquery"]
trino = ["harlequin-trino"]
databricks = ["harlequin-databricks"]
adbc = ["harlequin-adbc"]
cassandra = ["harlequin-cassandra"]
nebulagraph = ["harlequin-nebulagraph"]
[dependency-groups]
dev = [
"pre-commit>=3.3,<4",
"textual-dev==1.8.0",
"harlequin-postgres>=1.1.1,<2",
"harlequin-mysql>=1,<2",
"pyinstrument>=5,<6",
]
static = [
"ruff>=0.14.1",
"mypy==1.18.2,<2",
"pandas-stubs>=2,<3",
"boto3-stubs>=1.34.23,<2",
]
test = [
"pytest>=7.3.1,<9.0.0",
"pytest-asyncio==0.21.0",
"pytest-textual-snapshot @ https://github.com/tconbeer/pytest-textual-snapshot.git#main",
"boto3==1.34.22",
# extension tests require consistent version of duckdb.
"duckdb==1.4.2",
"flaky>=3.8.1",
]
# For development of related libraries
# [tool.uv.sources]
# textual-fastdatatable = { path = "../textual-fastdatatable" }
# textual-textarea = { path = "../textual-textarea" }
[project.urls]
Homepage = "https://harlequin.sh"
Documentation = "https://harlequin.sh/docs/getting-started/index"
Repository = "https://github.com/tconbeer/harlequin"
"Bug Tracker" = "https://github.com/tconbeer/harlequin/issues"
Changelog = "https://github.com/tconbeer/harlequin/blob/main/CHANGELOG.md"
[project.scripts]
harlequin = "harlequin.cli:harlequin"
[project.entry-points."harlequin.adapter"]
duckdb = "harlequin_duckdb:DuckDbAdapter"
sqlite = "harlequin_sqlite:HarlequinSqliteAdapter"
[project.entry-points."harlequin.keymap"]
vscode = "harlequin_vscode:VSCODE"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = [
"src/harlequin",
"src/harlequin_duckdb",
"src/harlequin_sqlite",
"src/harlequin_vscode",
]
[tool.hatch.build.targets.sdist]
only-include = [
"src",
"README.md",
"CHANGELOG.md",
"LICENSE",
"pyproject.toml"
]
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
select = ["A", "B", "E", "F", "I"]
[tool.mypy]
python_version = "3.10"
files = [
"src/**/*.py",
"tests/**/*.py",
]
mypy_path = "stubs,src"
show_column_numbers = true
# show error messages from unrelated files
follow_imports = "normal"
# be strict
disallow_untyped_calls = true
disallow_untyped_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
strict_optional = true
warn_return_any = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
no_implicit_reexport = true
strict_equality = true
[tool.pytest.ini_options]
markers = [
"online: requeries internet connection (deselect with '-m \"not online\"')",
"use_cache: override the autouse fixture the disables the buffer cache",
"py12: Only run on Python 3.12 or higher",
]
|