Debian Codegraph @

pyproject.toml

raw
1 [project]
2 name = "harlequin-postgres"
3 version = "1.5.0"
4 description = "A Harlequin adapter for Postgres."
5 authors = [
6 { name = "Ted Conbeer", email = "[email protected]" },
7 ]
8 license = "MIT"
9 readme = "README.md"
10 requires-python = ">=3.10"
11 dependencies = [
12 # 2.11 is the first version with CatalogSearchResult, which search_catalog returns
13 "harlequin>=2.11,<3",
14 "psycopg[binary,pool]>=3.2,<4",
15 # temp pin to allow prerelease versions
16 "duckdb>=1.4.2.dev0; python_version>='3.14'"
17 ]
18
19 [project.entry-points."harlequin.adapter"]
20 postgres = "harlequin_postgres:HarlequinPostgresAdapter"
21
22 [dependency-groups]
23 dev = [
24 "harlequin==2.11.0",
25 "ruff>=0.5,<1",
26 "pytest>=7.4.3,<8",
27 "mypy>=1.10.0,<2",
28 "pre-commit>=3.5.0,<4",
29 "importlib-metadata>=4.6.0; python_full_version < '3.10.0'",
30 "pyinstrument>=4.6.1,<5",
31 ]
32
33
34 [build-system]
35
36 requires = ["hatchling"]
37 build-backend = "hatchling.build"
38
39
40 [tool.hatch.build.targets.wheel]
41
42 packages = [
43 "src/harlequin_postgres",
44 ]
45
46 [tool.hatch.build.targets.sdist]
47
48 only-include = [
49 "src",
50 "README.md",
51 "CHANGELOG.md",
52 "LICENSE",
53 "pyproject.toml"
54 ]
55
56 [tool.ruff]
57 target-version = "py310"
58
59 [tool.ruff.lint]
60 select = ["A", "B", "E", "F", "I"]
61
62 [tool.mypy]
63 python_version = "3.10"
64 files = [
65 "src/**/*.py",
66 "tests/**/*.py",
67 ]
68 mypy_path = "src:stubs"
69
70 show_column_numbers = true
71
72 # show error messages from unrelated files
73 follow_imports = "normal"
74
75 # be strict
76 disallow_untyped_calls = true
77 disallow_untyped_defs = true
78 check_untyped_defs = true
79 disallow_untyped_decorators = true
80 disallow_incomplete_defs = true
81 disallow_subclassing_any = true
82 strict_optional = true
83
84 warn_return_any = true
85 warn_no_return = true
86 warn_redundant_casts = true
87 warn_unused_ignores = true
88 warn_unused_configs = true
89
90 no_implicit_reexport = true
91 strict_equality = true