forked from fandigunawan/hardening-importer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
94 lines (82 loc) · 1.43 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
[tox]
envlist = lint,security,clean,test,report
[pytest]
testpaths = tests
[coverage:run]
source = src
parallel = True
[coverage:paths]
source =
src/hardening_importer
*/site-packages/hardening_importer
[coverage:report]
show_missing = True
[testenv]
passenv =
CI
DRONE_*
[testenv:lint]
basepython = python3
deps =
flake8
flake8-docstrings
flake8-pytest-style
commands =
flake8 src/ tests/ --show-source --statistics
[testenv:security]
skip_install = True
basepython = python3
deps =
bandit
commands =
bandit -r src/
[testenv:clean]
skip_install = True
basepython = python3
deps =
coverage
commands =
coverage erase
[testenv:test]
basepython = python3
deps =
pytest
pytest-cov
commands =
python -m pytest --cov hardening_importer --cov-report=xml tests/
[testenv:report]
skip_install = True
basepython = python3
depends =
test
deps =
coverage
commands =
coverage html
coverage report --fail-under=100
[testenv:build]
skip_install = True
basepython = python3
deps =
setuptools_scm
setuptools
wheel
allowlist_externals =
rm
ls
commands =
rm -rf dist
python setup.py sdist bdist_wheel
ls -halF dist
[testenv:release]
skip_install = True
basepython = python3
deps =
twine
passenv =
TWINE_PASSWORD
TWINE_REPOSITORY
setenv =
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
python -m twine upload --skip-existing dist/*