-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (45 loc) · 938 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]
skipsdist = true
envlist =
formatting,
types,
py39,
coverage,
[testenv]
basepython = python3.9
usedevelop = True
deps =
-rrequirements.txt
coverage
setenv =
PYTHONPATH = {toxinidir}
py39: COVERAGE_FILE=.coverage.{envname}
commands =
py39: coverage run -m pytest
py39: coverage report
[testenv:formatting]
deps =
black
flake8
isort
commands =
black --version
black lambdas tests s3dbcli.py deploy.py --check --diff
flake8 --version
flake8 lambdas tests s3dbcli.py deploy.py
isort --version
isort lambdas tests s3dbcli.py deploy.py --check-only --diff
[testenv:types]
deps =
mypy
types-termcolor
commands =
mypy --version
mypy lambdas tests s3dbcli.py deploy.py
[testenv:coverage]
deps = coverage
skip_install = true
commands =
/usr/bin/env bash -c "{envpython} -m coverage combine .coverage.*"
coverage report
coverage html