forked from vllm-project/guidellm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
108 lines (86 loc) · 2.13 KB
/
Copy pathtox.ini
File metadata and controls
108 lines (86 loc) · 2.13 KB
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
106
107
108
[tox]
min_version = 4.0
env_list = py3{10,11,12,13}
[testenv:tests]
description = Run all tests
dependency_groups = dev
commands =
python -m pytest {posargs:tests/}
[testenv:test-unit]
description = Run unit tests
base = tests
commands =
python -m pytest tests/unit {posargs}
[testenv:test-integration]
description = Run integration tests
base = tests
commands =
python -m pytest tests/integration {posargs}
[testenv:test-e2e]
description = Run end-to-end tests
base = tests
commands =
python -m pytest tests/e2e {posargs}
[testenv:lint-check]
description = Run all quality checks
base = tests
commands =
ruff format --check --diff
ruff check
python -m mdformat --check README.md DEVELOPING.md CONTRIBUTING.md CODE_OF_CONDUCT.md docs/ src/ tests/
[testenv:lint-fix]
description = Run style checks and fixes
base = tests
commands =
ruff format
ruff check --fix
python -m mdformat README.md DEVELOPING.md CONTRIBUTING.md CODE_OF_CONDUCT.md docs/ src/ tests/
[testenv:type-check]
description = Run type checks
base = tests
commands =
mypy --check-untyped-defs {posargs}
[testenv:link-check]
description = Run link checks for root and docs markdown files
base = tests
commands =
mkdocs-linkcheck ./
mkdocs-linkcheck docs/
[testenv:build]
description = Build the project
deps =
build
setuptools
setuptools-git-versioning
setenv =
GUIDELLM_BUILD_TYPE = {env:GUIDELLM_BUILD_TYPE:dev}
GUIDELLM_BUILD_ITERATION = {env:GUIDELLM_BUILD_ITERATION:}
commands =
python -m build
[testenv:clean]
description = Clean up build, dist, and cache files
runner = virtualenv
skip_install = true
env_log_dir = /tmp/.tox_clean
allowlist_externals =
find
rm
commands =
rm -rf build
rm -rf dist
rm -rf *.egg-info
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -exec rm -r {} +
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf .ruff_cache
rm -rf .coverage
rm -rf .tox
[testenv:lock]
description = Update pylock
runner = virtualenv
skip_install = true
allowlist_externals = ./scripts/lock.sh
deps = uv
commands =
./scripts/lock.sh {posargs}