-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
50 lines (46 loc) · 923 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
39
40
41
42
43
44
45
46
47
48
49
50
[tox]
envlist =
formatting,
types,
py38,
coverage,
[testenv]
basepython = python3.8
usedevelop = True
deps =
-rrequirements/install.txt
-rrequirements/test.txt
coverage
setenv =
PYTHONPATH = {toxinidir}
py38: COVERAGE_FILE=.coverage.{envname}
commands =
py38: coverage run -m py.test
py38: coverage report
[testenv:formatting]
deps =
black
flake8
isort
commands =
black --version
black datawarehouse tests --check --diff
flake8 --version
flake8 datawarehouse tests
isort --version
isort datawarehouse tests --check-only --diff
[testenv:types]
deps =
mypy
-rrequirements/stubs.txt
commands =
mypy --version
mypy datawarehouse tests
[testenv:coverage]
deps = coverage
skip_install = True
skipsdist = True
commands =
/usr/bin/env bash -c "{envpython} -m coverage combine .coverage.*"
coverage report
coverage html