forked from bentoml/OpenLLM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhatch.toml
38 lines (38 loc) · 1.04 KB
/
hatch.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
[envs.default]
dependencies = [
# NOTE: To run all hooks
"pre-commit",
# NOTE: towncrier for changelog
"towncrier",
# NOTE: Using under ./tools/update-optional-dependencies.py
"tomlkit",
# NOTE: Using under ./tools/update-readme.py
"markdown-it-py",
# NOTE: pyright for type
"pyright",
]
[envs.default.scripts]
changelog = "towncrier build --version main --draft"
fmt = "pre-commit run --all-files"
setup = "pre-commit install"
typing = "pyright {args:src/openllm tests}"
[envs.test]
dependencies = [
# NOTE: Tests strategies with Hypothesis and pytest, and snapshot testing with syrupy
"coverage[toml]>=6.5",
"pytest",
"pytest-asyncio>=0.21.0",
"pytest-xdist[psutil]",
"pytest-cov",
"pytest-mock",
"pytest-randomly",
"pytest-rerunfailures",
"hypothesis",
"syrupy",
]
[envs.test.scripts]
cov = ["cov-test", "- coverage combine", "coverage report"]
cov-test = "coverage run -m pytest {args:tests}"
p = "pytest {args:tests}"
[[envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]