-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
50 lines (44 loc) · 871 Bytes
/
tox.ini
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
# SPDX-License-Identifier: Apache-2.0
[tox]
envlist = ruff, format, lint, py3{9,10,11,12,13}
skip_missing_interpreters = true
[testenv]
description = run tests
package = wheel
wheel_build_env = pkg
deps =
pytest
commands =
{envpython} -m pytest tests.py {posargs}
[testenv:lint]
description = lint with pylint
skip_install = true
skipsdist = true
deps =
pytest
pylint
commands =
{envpython} -m pylint src/instructlab_quantize tests.py
[testenv:ruff]
description = check code with Ruff
skip_install = True
skipsdist = true
deps =
ruff
commands =
ruff check {posargs}
[testenv:format]
description = format code with Ruff
skip_install = True
skipsdist = true
deps =
ruff
commands =
ruff format {posargs:--check}
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312, ruff, format, lint
3.13: py313