-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
90 lines (78 loc) · 1.83 KB
/
pyproject.toml
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
[project]
name = "any-llm-client"
description = "Add your description here" # TODO
readme = "README.md"
keywords = ["llm", "llm-client", "openai", "yandex", "yandexgpt"]
classifiers = [
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Networking",
"Typing :: Typed",
]
authors = [{ name = "Lev Vereshchagin", email = "[email protected]" }]
requires-python = ">=3.10"
dependencies = [
"httpx-sse>=0.4.0",
"httpx>=0.27.2",
"pydantic>=2.9.2",
"stamina>=24.3.0",
]
dynamic = ["version"]
[dependency-groups]
dev = [
"anyio",
"faker",
"polyfactory",
"pydantic-settings",
"pytest-cov",
"pytest",
]
lint = [{ include-group = "dev" }, "auto-typing-final", "mypy", "ruff"]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.mypy]
python_version = "3.10"
warn_unused_ignores = true
strict = true
plugins = ["pydantic.mypy"]
[tool.ruff]
fix = true
unsafe-fixes = true
line-length = 120
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"EM",
"FBT",
"TRY003",
"D1",
"D203",
"D213",
"G004",
"FA",
"COM812",
"ISC001",
]
[tool.ruff.lint.isort]
no-lines-before = ["standard-library", "local-folder"]
known-third-party = []
known-local-folder = []
lines-after-imports = 2
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = ["S101", "S311"]
"examples/*.py" = ["INP001", "T201"]
[tool.pytest.ini_options]
addopts = "--cov=."
[tool.coverage.report]
skip_covered = true
show_missing = true
exclude_also = ["if typing.TYPE_CHECKING:"]