forked from faif/python-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
24 lines (20 loc) · 606 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
[tox]
envlist = py38,py39,cov-report
skip_missing_interpreters = true
[testenv]
setenv =
COVERAGE_FILE = .coverage.{envname}
deps =
-r requirements-dev.txt
commands =
flake8 . --exclude="./.*, venv"
; `randomly-seed` option from `pytest-randomly` helps with deterministic outputs for examples like `other/blackboard.py`
pytest --randomly-seed=1234 --doctest-modules patterns/
pytest -s -vv --cov={envsitepackagesdir}/patterns --log-level=INFO tests/
[testenv:cov-report]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage combine
coverage report