-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
91 lines (80 loc) · 1.77 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
; MUST install tox to run
[tox]
envlist = test,dogfooding,flake8,maintainability,bandit
requires = tox-wheel
[testenv]
[testenv:test]
wheel =
true
deps =
pytest
pytest-cov
coverage
hypothesis[numpy,pandas,pytest]
commands =
{envpython} -m pytest --disable-pytest-warnings --cov-append --cov-fail-under 90 --cov-config=tox.ini --cov=unofficial_encoders --hypothesis-show-statistics {posargs}
commands_post =
coverage html
coverage erase
[testenv:flake8]
skip_install =
true
deps =
flake8
flake8-bugbear
flake8-import-order
pep8-naming
commands =
flake8 unofficial_encoders tests examples
[testenv:maintainability]
skip_install =
true
deps =
radon
commands =
radon mi unofficial_encoders tests examples
[testenv:bandit]
skip_install =
true
deps =
bandit
commands =
bandit --ini tox.ini -r unofficial_encoders tests examples
[testenv:dogfooding]
changedir =
{toxinidir}/examples
commands =
{envpython} one_hot_encoder_example.py
{envpython} label_encoder_example.py
[testenv:user_install]
skip_install =
true
changedir =
{toxinidir}/examples
commands_pre =
pip install git+https://github.com/RazHoshia/unofficial_encoders.git
commands =
{envpython} one_hot_encoder_example.py
{envpython} label_encoder_example.py
[testenv:docs]
changedir =
{toxinidir}
deps =
sphinx
sphinx_rtd_theme
m2r2
commands =
sphinx-apidoc -o docs/source/ ./unofficial_encoders -f -M --ext-viewcode
sphinx-build docs/source docs/build/html -W -b html
[coverage:run]
omit =
*.pyc
[flake8]
ignore = E203, E501, N806, N803
max-complexity = 10
import-order-style = google
application-import-names = unofficial_encoders
[bandit]
level = HIGH
; do not check for assert statements
skips = B101