forked from paragbaxi/qualysapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
95 lines (87 loc) · 2.23 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
[tox]
minversion = 3.7.0
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:true}
envlist = pypy3{6},py3{6,7,8,9},lint,style,pkg
[testenv]
description = unit tests
basepython =
py3: python3
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
pypy36: pypy3.6
deps =
coverage[toml] == 4.5.4
pytest == 5.3.1
pytest-cov == 2.8.1
coveralls: coveralls
commands =
python -c 'import os; from pprint import pprint; pprint(os.environ)'
pytest -c ./tox.ini \
--cov-report=xml:{toxworkdir}/coverage-{envname}.xml \
--cov-report=html:{toxworkdir}/htmlcov-{envname} \
--junitxml {toxworkdir}/pytest-{envname}.junit.xml \
{posargs}
coveralls: coveralls
[testenv:pylint]
description = Static Analysis
basepython = python3
deps =
isort[pyproject] == 4.3.21
pylint == 2.4.4
pytest == 5.3.1
commands = pylint qualysapi/ setup.py tests/
[testenv:lint]
description = Style Guide Enforcement
basepython = python3
deps =
flake8 == 3.7.9
commands =
flake8 qualysapi/ setup.py tests/ --count --select=E901,E999,F821,F822,F823 --show-source --statistics
[testenv:style]
description = Style Checking
basepython = python3
deps =
black == 19.10b0
isort[pyproject] == 4.3.21
flynt == 0.38
commands =
isort --check-only --recursive qualysapi/ setup.py tests/
black --check qualysapi/ setup.py tests/
flynt --line_length 98 --transform-concats --fail-on-change setup.py qualysapi/ tests/
[testenv:type]
description = type checking
basepython = python3
deps =
pytype == 2019.05.31
commands = pytype qualysapi/
[testenv:security]
description = Security Checks
basepython = python3
deps =
bandit == 1.6.2
pipenv == 2018.11.26
commands =
pipenv check
bandit --recursive qualysapi/
[testenv:pkg]
description = check distribution package
basepython = python3
skip_install = true
deps =
pyroma == 2.6
readme_renderer[md] == 24.0
twine == 3.0.0
commands_pre =
python3 setup.py sdist bdist_wheel
commands =
pyroma .
twine check dist/*
[pytest]
minversion = 5.2
testpaths = tests
addopts = --verbosity=2 --showlocals -rfp --tb=short --cov=qualysapi --cov-report=term
log_cli = true
log_level = DEBUG
junit_family = xunit2