-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (108 loc) · 2.71 KB
/
Copy pathpyproject.toml
File metadata and controls
123 lines (108 loc) · 2.71 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
[project]
name = "gigachat"
version = "0.2.3"
description = "GigaChat. Python-library for GigaChat API"
authors = [
{ name = "Konstantin Krestnikov", email = "rai220@gmail.com" },
{ name = "Sergey Malyshev", email = "in1t@ya.ru" },
]
requires-python = ">=3.8,<4"
readme = "README.md"
license = "MIT"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.0,<3",
"pydantic-settings>=2.0,<2.9.0 ; python_version == '3.8'",
"pydantic-settings>=2.0,<2.12.0 ; python_version == '3.9'",
"pydantic-settings>=2.0,<3 ; python_version >= '3.10'",
"httpx>=0.24,<1",
]
[project.urls]
Repository = "https://github.com/ai-forever/gigachat"
[dependency-groups]
dev = [
"mypy>=1.8.0",
"pytest>=7.4.3",
"pytest-httpx<=0.22.0 ; python_version < '3.9'",
"pytest-httpx>=0.26.0,<0.27 ; python_version >= '3.9'",
"pytest-asyncio>=0.21.1",
"coverage>=7.0.0",
"ruff>=0.8.0",
"pre-commit>=3.5.0",
"pytest-cov>=5.0.0",
"vcrpy>=6.0.0",
"pytest-recording>=0.13.0",
"python-dotenv>=1.0.0",
]
[tool.hatch.build.targets.sdist]
include = ["src/gigachat"]
[tool.hatch.build.targets.wheel]
include = ["src/gigachat"]
[tool.hatch.build.targets.wheel.sources]
"src/gigachat" = "gigachat"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 120
src = ["src"]
target-version = "py38"
exclude = ["htmlcov", "*.ipynb"]
[tool.ruff.lint]
select = [
"A",
"B",
"C4",
"C90",
"D401",
"E",
"F",
"I",
"PERF",
"PT",
"Q",
"RUF100",
"S",
"UP",
"W",
]
ignore = ["S311"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "S105", "S106", "S107"]
[tool.ruff.lint.isort]
known-first-party = ["gigachat"]
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
plugins = "pydantic.mypy"
strict = true
[tool.pytest.ini_options]
pythonpath = ["src", "."]
xfail_strict = true
asyncio_mode = "auto"
markers = ["integration: mark a test as an integration test."]
addopts = "-m 'not integration'"
[tool.coverage.run]
branch = true
source = ["src/gigachat"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if .*TYPE_CHECKING:",
"@.*overload",
"assert_never",
]