-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
56 lines (48 loc) · 1.09 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
[tox]
envlist = py{37,38}
skipsdist = True
[testenv]
passenv =
CODECOV_* TOXENV CI TRAVIS TRAVIS_*
DATABASE_URL PRIVATE_KEY QUERIES_RESULTS_PATH
API_* ORDER_* CODACY_*
whitelist_externals = sh
commands =
pytest --cov --cov-report=
sh -c 'if [ ! -z "$CODECOV_TOKEN" ]; then codecov; fi'
sh -c 'if [ ! -z "$CODACY_PROJECT_TOKEN" ]; then coverage xml; fi'
sh -c 'if [ ! -z "$CODACY_PROJECT_TOKEN" ]; then python-codacy-coverage -r coverage.xml; fi'
deps =
-rrequirements.tox.txt
[testenv:black]
basepython = python3.8
deps =
black>=19.10b0
commands =
black --check .
[testenv:flake8]
basepython = python3.8
deps =
flake8>=3.7.9
flake8-black>=0.1.1
commands =
flake8 pyker tests
[testenv:pydocstyle]
basepython = python3.8
deps =
pydocstyle>=5.0.2
whitelist_externals = sh
commands =
sh -c 'find pyker -name "*.py" -type f | xargs pydocstyle -v'
[testenv:bandit]
basepython = python3.8
deps =
bandit>=1.6.2
commands =
bandit -r pyker -c .bandit
bandit -r tests -c .bandit
[travis]
python =
3.7: py37
3.8: py38
unignore_outcomes = True