File: tox.ini

package info (click to toggle)
python-marshmallow-enum 1.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 140 kB
  • sloc: python: 359; sh: 8; makefile: 3
file content (31 lines) | stat: -rw-r--r-- 751 bytes parent folder | download
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
[tox]
envlist = py{27,34}-marshmallow2,py{35,36,37}-marshmallow{2, 3},cov-report

[testenv]
usedevelop = true
setenv =
        COVERAGE_FILE = tests/.coverage.{envname}
        PYTHONDONTWRITEBYTECODE = pls
commands =
        coverage run -m pytest
deps =
        marshmallow2: marshmallow<3.0.0
        marshmallow3: marshmallow>=3.0.0rc7
        -r{toxinidir}/requirements-test.txt

[testenv:cov-report]
skip_install = true
setenv =
        COVERAGE_FILE = tests/.coverage
deps =
        -r{toxinidir}/requirements-test.txt
commands =
        coverage combine tests
        coverage report
        coverage html

[pytest]
norecursedirs = .tox .git .cache *.egg
addopts = -vvl --capture fd
flake8-ignore = E123,E133,E731
flake8-max-line-length = 100