forked from python-semantic-release/python-semantic-release
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
52 lines (47 loc) · 870 Bytes
/
tox.ini
File metadata and controls
52 lines (47 loc) · 870 Bytes
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
[tox]
envlist =
flake8,
isort,
mypy,
py{37,38},
coverage
skipsdist = True
[testenv]
passenv = CI
setenv =
PYTHONPATH = {toxinidir}
TESTING = True
install_command = python -m pip install --ignore-installed {opts} {packages}
whitelist_externals =
coverage
python
pytest
deps = -r{toxinidir}/requirements/dev.txt
commands =
coverage run -p --source=semantic_release -m py.test -v tests
[testenv:flake8]
basepython = python3.8
deps =
flake8
commands =
flake8
[testenv:isort]
basepython = python3.8
deps =
isort
commands =
isort -c -rc semantic_release tests
[testenv:mypy]
basepython = python3.8
deps =
mypy
commands =
mypy --ignore-missing-imports semantic_release
[testenv:coverage]
basepython = python3.8
deps =
coverage
commands =
coverage combine
coverage report -m
coverage xml