aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
blob: e5c10dc713a031f78f4572d6e5e4b38d00d81e98 (plain) (blame)
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
[project]
name = "gemini-py"
version = "0.1.0"
description = "Python SDK for Gemini API reverse-engineered from Gemini CLI"
requires-python = ">=3.10"
dependencies = [
    "httpx[http2]>=0.27",
    "pydantic>=2.0",
]

[project.scripts]
gemini = "gemini.cli:main"

[dependency-groups]
dev = [
    "mypy>=1.0",
    "pytest>=8.0",
    "pytest-asyncio>=0.23",
    "ruff>=0.4",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/gemini"]

[tool.pytest.ini_options]
asyncio_mode = "auto"

[tool.ruff]
src = ["src", "test"]
line-length = 100

[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "C4", "UP"]
ignore = ["E501"]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"

[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
no_implicit_optional = true

[[tool.mypy.overrides]]
module = ["httpx.*"]
ignore_missing_imports = true