-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
49 lines (44 loc) · 865 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
[tox]
envlist =
python3.9
python3.10
python3.11
flake8
pylint
[testenv]
description = Run unit test and output coverage report
usedevelop = true
deps =
pytest
pytest-cov
pytest-mock
-rrequirements.txt
setenv =
PYUSVC_NAME = taa
commands =
pytest --cov src {posargs:-vv} --cov-config=setup.cfg --cov-report=term-missing --no-cov-on-fail
[testenv:flake8]
description = Code style check with flake8
skip_install = true
deps =
flake8
flake8-colors
flake8-docstrings
pep8-naming
pydocstyle
commands =
flake8 src tests setup.py
[testenv:pylint]
description = Code style check with pylint
usedevelop = true
deps =
{[testenv]deps}
pyflakes
pylint
commands =
pylint --fail-under=8 src setup.py
[flake8]
max-line-length = 100
exclude = tests/fixtures/*
[pylint]
ignore = C0103, N806