-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (55 loc) · 1.02 KB
/
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
51
52
53
54
55
56
57
58
59
60
[gh]
python =
3.12-dev: python3.12
3.11: lint, build, type, py3.11
3.10: py3.10
3.9: py3.9
3.8: py3.8
pypy-3.10: pypy3.10
pypy-3.9: pypy3.9
pypy-3.8: pypy3.8
[tox]
requires =
tox>=4
env_list =
lint
build
py{3.8,3.9,3.10,3.11}
py{3.8,3.9,3.10,3.11}-win32
python3.12
pypy3.{8,9,10}
coverage
[testenv]
description = Run Unit Tests
deps =
pytest>=7.3.1
pytest-cov>=4.0.0
coverage>=7.2.7
wheel>=0.40.0
commands =
pip install -e .
pytest . --cov --cov-report=term-missing -vv --doctest-glob="*.py"
coverage report
coverage xml
[testenv:lint]
description = Run Linters
deps =
black>=23.3.0
isort>=5.12.0
commands =
isort . --check-only
black . --check --verbose
[testenv:type]
description = Run Type Checks
deps =
mypy>=1.4.1
commands =
mypy opengrammar --config-file pyproject.toml
[testenv:build]
description = Run Build Checks
deps =
build>=0.10.0
twine>=4.0.2
commands =
python -m build
twine check dist/*