-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpyproject.toml
85 lines (75 loc) · 1.78 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
[tool.poetry]
name = "sandbox"
version = "0.0.1"
description = ""
authors = [
"liusiyao.sine <[email protected]>",
"chenli.cxx <[email protected]>",
"xinshulin <[email protected]>"
]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = ">=2.4.0,<2.7.0"
fastapi = "^0.103.1"
uvicorn = {version = "0.25.0", extras = ["standard"]}
structlog = "^23.1.0"
psutil = "^5.9.8"
aiofiles = "^23.2.1"
aiohttp = "^3.9.5"
tenacity = "^8.4.2"
databases = { extras = ["aiomysql", "aiosqlite"], version = "^0.9.0" }
transformers = "^4.44.0"
[tool.poetry.group.dev.dependencies]
yapf = "^0.40.1"
isort = "^5.12.0"
pytest = "^7.4.2"
pytest-asyncio = "^0.23.2"
pytest-mock = "^3.11.1"
mypy = "^1.6.1"
pytest-cov = "^4.1.0"
pycln = "^2.3.0"
httpx = "^0.26.0"
numpy = "^2.0.0"
pytest-xdist = "^3.6.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.yapf]
based_on_style = "google"
column_limit = 120
[tool.isort]
profile = "hug"
line_length = 120
extend_skip_glob = ["sandbox/tests/*"]
[tool.pytest.ini_options]
addopts = """
-p no:logging
--cov=sandbox
--cov-report=xml:coverage.xml
--cov-report=term
--ignore=sandbox/tests/runners/samples
--ignore=scripts
"""
asyncio_mode = "auto"
filterwarnings = [
"ignore::pytest.PytestUnraisableExceptionWarning",
]
markers = [
"cuda: tests that requires gpu",
"minor: tests of minor languages",
"verilog: tests of verilog",
"datalake: tests that requires online datalake access",
"dp_eval: tests that uses external dp ada api"
]
[tool.coverage.run]
source = ["sandbox/*"]
omit = ["sandbox/tests/*"]
[tool.coverage.report]
exclude_also = ["@(abc\\.)?abstractmethod"]
ignore_errors = true
[tool.mypy]
ignore_missing_imports = true
[tool.pycln]
path = "sandbox/"
all = true