-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
72 lines (62 loc) · 1.39 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
[tox]
envlist =
py34,py35,py36,py37
format,lint,coverage
[testenv]
basepython =
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
py3: python3.6
commands =
pip install sqlalchemy-postgresql-audit[testing]
pytest --cov sqlalchemy_postgresql_audit --cov-report= -v tests {posargs:}
setenv =
COVERAGE_FILE=tmp/.coverage.{envname}
LC_ALL=C.UTF-8
LANG=C.UTF-8
[testenv:coverage]
basepython = python3.6
commands =
coverage combine tmp/
coverage report
coverage xml -o tmp/coverage.xml
coverage html -d tmp/cover --skip-covered
deps =
coverage
setenv =
COVERAGE_FILE=tmp/.coverage
LC_ALL=C.UTF-8
LANG=C.UTF-8
[testenv:docs]
basepython = python3.6
changedir = docs
commands =
pip install sqlalchemy-postgresql-audit[docs]
make html
setenv =
COVERAGE_FILE=tmp/.coverage
LC_ALL=C.UTF-8
LANG=C.UTF-8
whitelist_externals =
make
[testenv:format]
basepython = python3.6
commands =
pip install sqlalchemy-postgresql-audit[linting]
{toxinidir}/bin/format
setenv =
SLUGIFY_USES_TEXT_UNIDECODE=yes
LC_ALL=C.UTF-8
LANG=C.UTF-8
[testenv:lint]
basepython = python3.6
commands =
pip install sqlalchemy-postgresql-audit[linting]
flake8 tests/ src/
black --diff --check src/sqlalchemy_postgresql_audit/ tests/
setenv =
SLUGIFY_USES_TEXT_UNIDECODE=yes
LC_ALL=C.UTF-8
LANG=C.UTF-8