-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
76 lines (70 loc) · 1.64 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[tox]
envlist = py37, style, mypy
skipsdist = True
[testenv:py37]
deps =
beautifulsoup4
pytest
pytest-flask-sqlalchemy
-rrequirements.txt
docker = postgres:10
dockerenv =
POSTGRES_DB=yakbak_tox_test
POSTGRES_USER=yakbak
POSTGRES_PASSWORD=y4kb4k
passenv = POSTGRES_*
setenv =
YAK_BAK_DB_URL=postgres+psycopg2://yakbak:y4kb4k@%(POSTGRES_HOST)s:%(POSTGRES_5432_TCP_PORT)s/yakbak_tox_test
commands =
python yakbak/tests/wait_for_postgres.py
py.test --tb=native {toxinidir}/yakbak {posargs}
[testenv:migrate]
commands =
python yakbak/tests/wait_for_postgres.py
alembic upgrade head
alembic downgrade base
alembic upgrade head
docker = postgres:10
dockerenv =
POSTGRES_DB=yakbak_tox_test
POSTGRES_USER=yakbak
POSTGRES_PASSWORD=y4kb4k
passenv = POSTGRES_*
setenv =
YAK_BAK_DB_URL=postgres+psycopg2://yakbak:y4kb4k@%(POSTGRES_HOST)s:%(POSTGRES_5432_TCP_PORT)s/yakbak_tox_test
deps =
-rrequirements.txt
-e{toxinidir}
[testenv:format]
deps =
black
isort
seed-isort-config
commands =
- seed-isort-config
isort --recursive {toxinidir}/yakbak
black --quiet --exclude=yakbak/diff\.py {toxinidir}/yakbak
[testenv:freeze]
skip_install = true
deps =
pip-tools
commands =
pip-compile --output-file=requirements.txt setup.py {posargs}
[testenv:style]
skip_install = true
deps =
black
flake8-bugbear
flake8-isort
pep8-naming
commands =
black --check --verbose --exclude=yakbak/diff\.py {toxinidir}/yakbak
flake8 {toxinidir}/yakbak
[testenv:mypy]
deps =
mypy
pytest
sqlalchemy-stubs
-rrequirements.txt
commands =
mypy {toxinidir}/yakbak