-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
60 lines (53 loc) · 1018 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
51
52
53
54
55
56
57
58
59
60
[tox]
envlist = py38, py39, py310, py311, py312, py313, lint, format, mypy
skip_missing_interpreters=true
[testenv]
deps =
pytest
pytest-clarity
six # due to broken list of requirements of pytest-clarity
pytest-xdist
pydantic
commands =
pytest {posargs:-n auto}
[testenv:tests]
[testenv:lint]
deps =
ruff
pylint
mccabe
pytest
flake8
flake8-bugbear
pydantic
commands =
ruff check gersemi tests setup.py
pylint --recursive=y gersemi tests
flake8 gersemi tests setup.py
[testenv:format]
deps =
black
commands =
black --check gersemi stubs tests setup.py
[testenv:mypy]
setenv =
MYPYPATH = stubs
deps =
mypy
types-dataclasses
types-PyYAML
pydantic
commands =
mypy gersemi tests
[testenv:coverage]
deps =
pytest
pytest-cov
commands =
pytest --cov=gersemi --cov-branch --cov-report term-missing {posargs}
[testenv:profiling]
deps =
pytest
pytest-profiling
commands =
pytest --profile-svg {posargs}