-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpyproject.toml
72 lines (62 loc) · 1.53 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
[tool.poetry]
name = "gigachat"
version = "0.1.37post1"
description = "GigaChat. Python-library for GigaChain and LangChain"
authors = ["Konstantin Krestnikov <[email protected]>", "Sergey Malyshev <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/ai-forever/gigachat"
packages = [{include = "gigachat", from = "src"}]
[tool.poetry.dependencies]
python = "^3.8"
pydantic = ">=1"
httpx = "<=0.27.2"
[tool.poetry.group.dev.dependencies]
black = "^23.12.1"
mypy = "^1.8.0"
pytest = "^7.4.3"
pytest-httpx = [
{version = "<=0.22.0", python = "~3.8"},
{version = "^0.26.0", python = "^3.9"}
]
pytest-asyncio = "^0.21.1"
coverage = "<=7.3.0"
pytest-mock = "^3.12.0"
ruff = "^0.0.291"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
color = true
line-length = 120
target-version = ["py38"]
[tool.ruff]
extend-select = [ "A", "B", "C4", "C90", "I", "Q", "PERF", "PT", "RUF100", "UP", "W"]
line-length = 120
src = ["src"]
target-version = "py38"
[tool.ruff.mccabe]
max-complexity = 10
[tool.mypy]
plugins = "pydantic.mypy"
strict = true
exclude = "src/gigachat/pydantic_v1"
[tool.pytest.ini_options]
pythonpath = ["src"]
xfail_strict = true
[tool.coverage.run]
branch = true
source = ["src"]
omit = ["*/pydantic_v1/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@overload",
"@typing.overload",
"assert_never",
]
#show_missing = true
#skip_covered = true