-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
44 lines (37 loc) · 845 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
[tox]
minversion = 3.8.0
envlist = py310, flake8, mypy
isolated_build = True
[gh-actions]
python =
3.10: py310, mypy, flake8
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_dev.txt
commands =
pytest --basetemp={envtmpdir}
[testenv:flake8]
basepython = python3.10
deps = flake8
commands = flake8 src tests
[testenv:mypy]
basepython = python3.10
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_dev.txt
commands = mypy src
[testenv:pylint]
basepython=python3.10
disable = missing-docstring,
R,
C,
line-too-long
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
commands=pylint src
pylint --disable=attribute-defined-outside-init tests
[flake8]
max-line-length = 150