forked from wangyuxinwhy/generate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
86 lines (78 loc) · 2.07 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
[tool.poetry]
name = "generate-core"
version = "0.4.3"
description = "文本生成,图像生成,语音生成"
authors = ["wangyuxin <wangyuxin@mokahr.com>"]
license = "MIT"
readme = "README.md"
packages = [{ include = "generate" }]
repository = "https://github.com/wangyuxinwhy/generate"
keywords = ["openai", "text generation", "image generation", "text to speech"]
[tool.poetry.dependencies]
python = "^3.8.1"
asyncer = "0.0.2"
typing-extensions = "^4.6.2"
httpx = "^0.24.1"
tenacity = "^8.2.2"
pyjwt = "^2.8.0"
cachetools = "^5.3.1"
tqdm = "^4.66.1"
pydantic = "^2.0"
docstring-parser = "^0.15"
httpx-sse = "^0.4.0"
pydantic-settings = "^2.1.0"
[tool.ruff]
line-length = 128
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"N",
"SIM",
"ANN",
"A",
"T",
"PT",
"RET",
"TRY",
"PERF",
]
lint.ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"B905", # zip strict
"C901", # too complex
"A003", # shadow builtin
"ANN1", # self and cls
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in
"TRY003", # Avoid specifying long messages outside the exception class
"PLC0414", # reimport
]
exclude = ["playground", "api_docs"]
target-version = "py38"
format.quote-style = "single"
# [tool.ruff.format]
# quote-style = "single"
[tool.pyright]
reportMissingTypeStubs = false
# TODO: remove this when all errors are fixed
reportIncompatibleVariableOverride = false
reportIncompatibleMethodOverride = false
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
pyright = "^1.1.310"
ruff = "^0.1.4"
coverage = "^7.3.2"
mkdocs-material = "^9.5.12"
pytest-mock = "^3.12.0"
[tool.poetry.group.bailian.dependencies]
broadscope-bailian = "^1.1.8"
[tool.poetry.group.ui.dependencies]
chainlit = "^1.0.200"
typer = "^0.9.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"