/
tox.ini
43 lines (42 loc) · 933 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
[tox]
envlist =
flake8,
pylint,
isort,
{py3}-tests
coverage
mypy
bandit
skipsdist = True
[testenv]
basepython =
pylint: python3
flake8: python3
isort: python3
coverage: python3
py3: python3
mypy: python3
bandit: python3
deps =
tests: -r{toxinidir}/requirements.dev.txt
-r{toxinidir}/requirements.txt
flake8: flake8
pylint: pylint
isort: isort
coverage: coverage
mypy: mypy
bandit: bandit
passenv = CI
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
TESTING = True
commands =
tests: coverage run -p --source=putio_downloader -m py.test -v tests
py3-tests: coverage combine
flake8: flake8
pylint: pylint --exit-zero putio_downloader
bandit: bandit -r putio_downloader
mypy: mypy putio_downloader --ignore-missing-imports
isort: isort -c -rc putio_downloader tests
coverage: coverage report
coverage: coverage xml