-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
55 lines (48 loc) · 1.08 KB
/
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
51
52
53
54
55
[tox]
envlist =
linting, {py39,py310}, coverage
[gh-actions]
python =
3.9: py39
3.10: py310
[travis]
python =
3.9: py39
[testenv:linting]
deps =
-r{toxinidir}/requirements_dev.txt
commands =
flake8 tests/
flake8 aws_vpc/eb-flask/application.py aws_vpc/eb-flask/rds_pg_connect.py
isort --check-only --df aws_vpc/eb-flask/application.py aws_vpc/eb-flask/rds_pg_connect.py
black .
python setup.py check -s
[testenv]
setenv =
PYTHONPATH = {toxinidir}
COVERAGE_FILE=.coverage.{envname}
deps =
-r{toxinidir}/requirements_dev.txt
-r{toxinidir}/aws_vpc/eb-flask/requirements.txt
commands =
pip install -U pip
python --version
pytest --cov=aws_vpc tests/
[testenv:coverage]
skip_install = true
commands =
coverage combine
coverage xml
coverage report --fail-under=100
deps =
-r{toxinidir}/requirements_dev.txt
setenv =
COVERAGE_FILE=.coverage
depends = testenv
[testenv:format]
skip_install = true
commands =
isort aws_vpc tests setup.py
black aws_vpc tests setup.py
deps =
-r{toxinidir}/requirements_dev.txt