-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
104 lines (94 loc) · 1.59 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
100
101
102
103
104
[tox]
minversion = 4.0
envlist = py{39,310,311,312,313}, mypy, black
requires =
tox-gh-actions
isolated_build = True
[gh-actions]
python =
3.9: py39, mypy
3.10: py310, mypy
3.11: py311, mypy, black
3.12: py312, mypy, black
3.13: py313, mypy, black
[testenv]
passenv =
HOME
PIP_*
PYTEST_*
deps =
pytest>7
pytest-cov
mypy
pylint
flakeheaven
-rexamples/requirements.txt
# extras =
commands =
pytest
[testenv:pytest]
minversion = 7.1
addopts =
--verbose
--doctest-modules
testpaths =
tests/
# examples/vhdl/sqrt
# examples
asyncio_mode=auto
deps =
pytest>7
pytest-cov
-rexamples/vhdl/sqrt/requirements.txt
commands =
pytest -s -v
skip_install = false
[testenv:mypy]
testpaths =
src/
deps =
mypy>=0.991
commands =
python -m mypy --install-types --non-interactive src
skip_install = false
[testenv:pylint]
testpaths =
src/
deps = pylint
commands =
pylint --rcfile=pyproject.toml src
[testenv:flake]
testpaths =
src/
deps =
flakeheaven
flake8-quotes
flake8-commas
flake8-docstrings
flake8-bandit==3.0.0
pylint
pycodestyle
commands =
flakeheaven lint src/
[flake8]
exclude = .tox
[testenv:black]
testpaths =
src/
deps =
black
commands =
black --check --diff src
[pycodestyle]
max-line-length = 100
# extend-ignore = D,E203 # D: Docstring errors, E203: see https://github.com/PyCQA/pycodestyle/issues/373
ignore =
E501
line-too-long
missing-module-docstring
missing-function-docstring
indent-size = 4
exclude =
.github
.eggs
.tox