forked from cfpb/ccdb-data-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
38 lines (31 loc) · 718 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[tox]
skipsdist=True
envlist=lint-py37, unittest-py37
[testenv]
passenv = *
basepython=
py37: python3.7
commands=
unittest: {[unittest]commands}
# ------------------------------------------------------------------------------
[unittest]
commands=
pytest --cov-report html:.htmlcov/{envname} --cov=. {posargs} -p no:cacheprovider
# ------------------------------------------------------------------------------
[testenv:lint-py37]
deps=
flake8
isort
commands=
flake8
isort --check-only --diff --recursive .
[testenv:unittest-py37]
setenv=
PYTHONDONTWRITEBYTECODE=1
PYTHONUNBUFFERED=1
deps=
-rrequirements.txt
freezegun
mock
pytest
pytest-cov