-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
99 lines (89 loc) · 1.77 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
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
[tox]
envlist = py{310, 311, 312, 313}-{linux,macos,win}, check, lint, flake8, type-check, docs, build, install, upload
skip_missing_interpreters = true
isolated_build = false
[testenv]
platform =
linux: linux
macos: darwin
win: win32
deps =
pytest
pytest-xdist
pytest-cov
-rrequirements.txt
commands =
py.test --basetemp={envtmpdir} -vv --cov=src \
--cov-report=html --cov-report=term-missing tests/
[testenv:check]
description = Validate the `pyproject.toml` file.
skip_install = true
deps =
packaging
validate-pyproject
commands =
validate-pyproject pyproject.toml
[testenv:lint]
description = Run linting using `lint`.
skip_install = true
deps =
pylint
commands =
pylint --disable=E0401 src/
[testenv:flake8]
basepython = python3.11
skip_install = true
deps =
flake8
commands =
flake8 src/
[testenv:type-check]
description = Run type checking using `mypy`.
basepython = python3.11
skip_install = true
setenv =
MYPYPATH = {toxinidir}
deps =
mypy
numpy
types-PyYAML
commands =
# python -m mypy type_stubs/ src/
python -m mypy src/
[testenv:docs]
basepython = python3.11
skip_install = true
deps =
autodocsumm
click
Cython<3
numpy
scikit-rf
Sphinx
sphinx_rtd_theme
commands =
sphinx-build -j auto -b html docs/ docs/_build/
[testenv:build]
basepython = python3.11
skip_install = true
deps =
build
commands =
python -m build
[testenv:install]
basepython = python3.11
isolated_build = false
skip_install = false
commands =
pychopmarg --version
[testenv:upload]
basepython = python3.11
skip_install = true
deps =
twine
commands =
twine upload --skip-existing dist/*
[flake8]
exclude = .tox,*.egg,build,data
ignore = E272, E221, E241, E222
max-line-length = 120