forked from justanr/marshmallow-annotations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (55 loc) · 1.47 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
[tox]
envlist = style,lint,types,py36,py37,cov-report,cov-store
[testenv]
usedevelop = true
setenv =
COVERAGE_FILE = test/.coverage.{envname}
PYTHONDONTWRITEBYTECODE = 1
commands =
coverage run -m pytest {posargs}
deps =
-r{toxinidir}/requirements/requirements-test.txt
[testenv:cov-report]
skip_install = true
setenv =
COVERAGE_FILE = test/.coverage
deps =
-r{toxinidir}/requirements/requirements-cov.txt
commands =
coverage combine test
coverage report
[testenv:cov-store]
skip_install = true
setenv =
COVERAGE_FILE = test/.coverage
deps =
-r{toxinidir}/requirements/requirements-cov.txt
commands =
coverage html
[testenv:style]
skip_install = true
deps = -r{toxinidir}/requirements/black.txt
basepython = python3.6
commands = black --check {toxinidir}/test/ {toxinidir}/src/marshmallow_annotations
[testenv:lint]
skip_install = true
deps = -r{toxinidir}/requirements/lint.txt
basepython = python3.6
commands = flake8 --config={toxinidir}/tox.ini {toxinidir}/src/marshmallow_annotations {toxinidir}/test
[testenv:types]
usedevelop = true
deps = -r{toxinidir}/requirements/requirements-types.txt
commands = mypy -m marshmallow_annotations
[flake8]
ignore =
E731
W503
__init__.py F401
max-line-length = 88
complexity = 10
select = C, E, F, W, B, B950
[pytest]
norecursedirs = .tox .git .cache *.egg docs dist build
addopts = -vvl --capture fd --strict
markers =
regression: issue found that has been corrected but could arise again