-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
105 lines (90 loc) · 2.19 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[tool.poetry]
name = "chatgit"
version = "0.1.0"
description = ""
authors = ["hezhaozhao <[email protected]>"]
readme = "README.md"
packages = [{ include = "chatgit" }]
[tool.poetry.dependencies]
python = "^3.10"
requests = "^2.31.0"
tenacity = "^8.2.3"
loguru = "^0.7.0"
jsonlines = "^3.1.0"
ratelimit = "^2.2.1"
toml = "^0.10.2"
fastapi = "^0.101.1"
uvicorn = "^0.23.2"
pydantic = "1.10.8"
ormar = {extras = ["mysql", "orjson"], version = "^0.12.2"}
tomli = "^2.0.1"
httpx = "^0.24.1"
sqlalchemy = ">=1.3.18,<1.4.42"
tqdm = "^4.66.1"
proxybroker2 = "^2.0.0a4"
plyvel = "^1.5.0"
[[tool.poetry.source]]
name = "aliyun"
url = "https://mirrors.aliyun.com/pypi/simple"
priority = "primary"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.poetry.group.dev.dependencies]
black = { extras = ["d"], version = "^23.7.0" }
mypy = "^1.5.1"
types-toml = "^0.10.8.7"
mypy-extensions = "^1.0.0"
types-requests = "2.31.0.2"
types-urllib3 = "1.26.25.14"
pre-commit = "^3.3.3"
alembic = "^1.11.3"
invoke = "^2.2.0"
types-invoke = "^2.0.0.9"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 160
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.black]
line-length = 160
target-version = ['py310', 'py311']
#include = '\.pyi?$'
#extend-exclude = '''
#/(
# # The following are specific to Black, you probably don't want those.
# tests/data
# | profiling
#)/
#'''
# We use preview style for formatting Black itself. If you
# want stable formatting across releases, you should keep
# this off.
preview = false
[tool.mypy]
plugins = ["pydantic.mypy"]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true