forked from huggingface/dataset-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
62 lines (54 loc) · 1.24 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
[tool.poetry]
authors = ["The HuggingFace Authors."]
description = "Library for the API services"
name = "libapi"
version = "0.1.0"
license = "Apache-2.0"
[tool.poetry.dependencies]
python = "3.9.18"
environs = "^9.5.0"
httpx = "^0.25.0"
libcommon = {path = "../../libs/libcommon", develop = true}
orjson = "^3.9.15"
pyjwt = { extras = ["crypto"], version = "^2.6.0" }
starlette = "^0.37.1"
starlette-prometheus = "^0.9.0"
[tool.poetry.group.dev.dependencies]
bandit = "^1.7.4"
ecdsa = "^0.18.0"
mypy = "^1.10.0"
pillow = "^10.3.0"
pip-audit = "^2.7.3"
pytest = "^8.2.2"
pytest-httpserver = "^1.0.6"
pytest-memray = "^1.6.0"
ruff = "^0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning"]
[tool.mypy]
strict = true
[[tool.mypy.overrides]]
module = [
"datasets.*",
"ecdsa.*",
"huggingface_hub.*",
"prometheus_client.*",
"pyarrow.*",
"tqdm.*"
]
ignore_missing_imports = true
[tool.ruff]
line-length = 119
src = ["src"]
target-version = "py39"
[tool.ruff.lint]
extend-select = [
"ARG", # flake8-unused-arguments
"I", # isort
# flake8-pep585:
"UP006", # non-pep585-annotation
"UP035", # deprecated-import
]