forked from foundation-model-stack/fms-acceleration
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
38 lines (33 loc) · 627 Bytes
/
tox.ini
File metadata and controls
38 lines (33 loc) · 627 Bytes
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
[tox]
envlist = py, lint, fmt, build, twinecheck
[testenv]
deps =
pytest>=7
commands = pytest {posargs:tests}
[testenv:lint]
description = run linters
deps =
pylint>=2.16.2,<=3.1.0
commands = pylint src tests
allowlist_externals = pylint
[testenv:fmt]
description = format
skip_install = true
deps =
black>=22.12
isort>=5.11
commands =
black {posargs:.}
isort {posargs:.}
[testenv:build]
description = build wheel
deps =
build
commands = python -m build -w
skip_install = True
[testenv:twinecheck]
description = check wheel
deps =
twine
commands = twine check dist/*
skip_install = True