-
Notifications
You must be signed in to change notification settings - Fork 36
/
tox.ini
61 lines (54 loc) · 1.18 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
[tox]
description = list of environments against which tox runs the tests
envlist =
clean
check
reformat
coverage
py36
py37
py38
skipsdist = True
[testenv]
basepython =
py36: {env:PYTHON:python3.6}
py37: {env:PYTHON:python3.7}
py38: {env:PYTHON:python3.8}
{clean,check,reformat,coverage}: {env:PYTHON:python3}
setenv =
PYTHONUNBUFFERED=yes
passenv =
*
deps =
flit
pygments
commands =
flit install --symlink
pytest {posargs: -vvv}
[testenv:coverage]
description = measures code coverage
commands =
flit install --symlink
pytest --cov=src tests/ --cov-report term --cov-report html
[testenv:check]
description = this environments checks for isort and black code style
deps =
isort
black
skip_install = true
commands =
isort --check-only --diff --recursive --project skaero --section-default THIRDPARTY src
black --check src
[testenv:reformat]
description = reformats the code using black and isort
deps =
black
isort
skip_install = true
commands =
isort --recursive --project skaero --section-default THIRDPARTY src
black src
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase